]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/fileio.h
Move LONG_LINE_MAX definition to fileio.h
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 11 Nov 2018 17:39:39 +0000 (18:39 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 Nov 2018 15:25:32 +0000 (16:25 +0100)
commitfde32028a4587fa13567c0f88e91be191ae9bdad
treefe72cbadf794d9f1add6ba873ce59276eabc1ea5
parent0221d68a1317407960ea6f88bd4ebc1781999332
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.
27 files changed:
src/backlight/backlight.c
src/basic/clock-util.c
src/basic/def.h
src/basic/exec-util.c
src/basic/fileio.c
src/basic/fileio.h
src/basic/hostname-util.c
src/basic/mount-util.c
src/basic/process-util.c
src/basic/time-util.c
src/basic/virt.c
src/core/ima-setup.c
src/core/smack-setup.c
src/cryptsetup/cryptsetup-generator.c
src/journal/catalog.c
src/libsystemd/sd-hwdb/hwdb-util.c
src/libsystemd/sd-path/sd-path.c
src/reply-password/reply-password.c
src/resolve/resolved-etc-hosts.c
src/resolve/resolved-resolv-conf.c
src/shared/clean-ipc.c
src/shared/install.c
src/shared/serialize.c
src/sysv-generator/sysv-generator.c
src/test/test-env-util.c
src/test/test-serialize.c
src/udev/udev-rules.c