defs: rework CONF_DIRS_NULSTR() macro
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Nov 2015 14:57:21 +0000 (15:57 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Nov 2015 16:31:31 +0000 (17:31 +0100)
commit75eb615480afd787fa412f0a529523f568f79b26
tree6e617b5565f2e40c746d33c3c91b95daf4ff0687
parentb1f044bbc45cc05049eed9c483a2d6bef73c0adc
defs: rework CONF_DIRS_NULSTR() macro

The macro is generically useful for putting together search paths, hence
let's make it truly generic, by dropping the implicit ".d" appending it
does, and leave that to the caller. Also rename it from
CONF_DIRS_NULSTR() to CONF_PATHS_NULSTR(), since it's not strictly about
dirs that way, but any kind of file system path.

Also, mark CONF_DIR_SPLIT_USR() as internal macro by renaming it to
_CONF_PATHS_SPLIT_USR() so that the leading underscore indicates that
it's internal.
16 files changed:
src/basic/def.h
src/binfmt/binfmt.c
src/bootchart/bootchart.c
src/core/main.c
src/journal-remote/journal-remote.c
src/journal-remote/journal-upload.c
src/journal/coredump.c
src/journal/journald-server.c
src/login/logind.c
src/modules-load/modules-load.c
src/resolve/resolved-conf.c
src/shared/sleep-config.c
src/sysctl/sysctl.c
src/sysusers/sysusers.c
src/timesync/timesyncd-conf.c
src/tmpfiles/tmpfiles.c