summaryrefslogtreecommitdiff
path: root/src/basic/def.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-11-11 18:39:39 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-11-14 16:25:32 +0100
commitfde32028a4587fa13567c0f88e91be191ae9bdad (patch)
treefe72cbadf794d9f1add6ba873ce59276eabc1ea5 /src/basic/def.h
parent0221d68a1317407960ea6f88bd4ebc1781999332 (diff)
downloadsystemd-fde32028a4587fa13567c0f88e91be191ae9bdad.tar.gz
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/basic/def.h')
-rw-r--r--src/basic/def.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/basic/def.h b/src/basic/def.h
index 005cd8d090..5be018d82e 100644
--- a/src/basic/def.h
+++ b/src/basic/def.h
@@ -74,6 +74,4 @@
"/usr/lib/" n \
_CONF_PATHS_SPLIT_USR(n))
-#define LONG_LINE_MAX (1U*1024U*1024U)
-
#define HIGH_RLIMIT_MEMLOCK (1024ULL*1024ULL*64ULL)