diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-11-11 18:39:39 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-11-14 16:25:32 +0100 |
commit | fde32028a4587fa13567c0f88e91be191ae9bdad (patch) | |
tree | fe72cbadf794d9f1add6ba873ce59276eabc1ea5 /src/shared | |
parent | basic/pager: convert the pager options to a flags argument (diff) | |
download | systemd-fde32028a4587fa13567c0f88e91be191ae9bdad.tar.xz systemd-fde32028a4587fa13567c0f88e91be191ae9bdad.zip |
Move LONG_LINE_MAX definition to fileio.h
All users of the macro (except for one, in serialize.c), use the macro in
connection with read_line(), so they must include fileio.h. Let's not play
libc games and require multiple header file to be included for the most common
use of a function.
The removal of def.h includes is not exact. I mostly went over the commits that
switch over to use read_line() and add def.h at the same time and reverted the
addition of def.h in those files.
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/clean-ipc.c | 1 | ||||
-rw-r--r-- | src/shared/install.c | 1 | ||||
-rw-r--r-- | src/shared/serialize.c | 2 |
3 files changed, 1 insertions, 3 deletions
diff --git a/src/shared/clean-ipc.c b/src/shared/clean-ipc.c index f9b05ff924..46fa68027e 100644 --- a/src/shared/clean-ipc.c +++ b/src/shared/clean-ipc.c @@ -16,7 +16,6 @@ #include <unistd.h> #include "clean-ipc.h" -#include "def.h" #include "dirent-util.h" #include "fd-util.h" #include "fileio.h" diff --git a/src/shared/install.c b/src/shared/install.c index d08d0af7b5..1fd24cb4eb 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -15,7 +15,6 @@ #include "alloc-util.h" #include "conf-files.h" #include "conf-parser.h" -#include "def.h" #include "dirent-util.h" #include "extract-word.h" #include "fd-util.h" diff --git a/src/shared/serialize.c b/src/shared/serialize.c index 3a6f8f60eb..d0f86a83f4 100644 --- a/src/shared/serialize.c +++ b/src/shared/serialize.c @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: LGPL-2.1+ */ #include "alloc-util.h" -#include "def.h" #include "env-util.h" #include "escape.h" +#include "fileio.h" #include "parse-util.h" #include "serialize.h" #include "strv.h" |