util-lib: don't include fileio.h from fileio-label.h

There's no reason for doing that, hence simply don't.
This commit is contained in:
Lennart Poettering 2018-11-30 21:07:21 +01:00
parent 928b3da0f1
commit ee228be10c
7 changed files with 8 additions and 8 deletions

View file

@ -22,6 +22,7 @@
#include "execute.h"
#include "fd-util.h"
#include "fileio-label.h"
#include "fileio.h"
#include "format-util.h"
#include "fs-util.h"
#include "id128-util.h"

View file

@ -11,6 +11,7 @@
#include "def.h"
#include "env-util.h"
#include "fileio-label.h"
#include "fileio.h"
#include "hostname-util.h"
#include "id128-util.h"
#include "main-func.h"

View file

@ -21,6 +21,7 @@
#include "escape.h"
#include "fd-util.h"
#include "fileio-label.h"
#include "fileio.h"
#include "format-util.h"
#include "fs-util.h"
#include "logind.h"

View file

@ -14,7 +14,7 @@
#include "dirent-util.h"
#include "dns-domain.h"
#include "fd-util.h"
#include "fileio-label.h"
#include "fileio.h"
#include "hostname-util.h"
#include "io-util.h"
#include "io-util.h"

View file

@ -6,7 +6,6 @@
#include "alloc-util.h"
#include "dns-domain.h"
#include "fd-util.h"
#include "fileio-label.h"
#include "fileio.h"
#include "ordered-set.h"
#include "resolved-conf.h"

View file

@ -3,11 +3,9 @@
#include <stdio.h>
#include "fileio.h"
/* These functions are split out of fileio.h (and not for examplement just as flags to the functions they wrap) in
* order to optimize linking: This way, -lselinux is needed only for the callers of these functions that need selinux,
* but not for all */
/* These functions are split out of fileio.h (and not for example just flags to the functions they wrap) in order to
* optimize linking: This way, -lselinux is needed only for the callers of these functions that need selinux, but not
* for all */
int write_string_file_atomic_label_ts(const char *fn, const char *line, struct timespec *ts);
static inline int write_string_file_atomic_label(const char *fn, const char *line) {

View file

@ -8,7 +8,7 @@
#include "copy.h"
#include "def.h"
#include "fd-util.h"
#include "fileio-label.h"
#include "fileio.h"
#include "format-util.h"
#include "fs-util.h"
#include "hashmap.h"