X Tutup
Skip to content

Commit 43688c4

Browse files
committed
tree-wide: rename config_parse_many to …_nulstr
In preparation for adding a version which takes a strv.
1 parent 047a0da commit 43688c4

File tree

14 files changed

+41
-37
lines changed

14 files changed

+41
-37
lines changed

src/basic/def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
#endif
8080

8181
/* Return a nulstr for a standard cascade of configuration paths,
82-
* suitable to pass to conf_files_list_nulstr() or config_parse_many()
82+
* suitable to pass to conf_files_list_nulstr() or config_parse_many_nulstr()
8383
* to implement drop-in directories for extending configuration
8484
* files. */
8585
#define CONF_PATHS_NULSTR(n) \

src/core/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ static int parse_config_file(void) {
715715
CONF_PATHS_NULSTR("systemd/system.conf.d") :
716716
CONF_PATHS_NULSTR("systemd/user.conf.d");
717717

718-
config_parse_many(fn, conf_dirs_nulstr, "Manager\0", config_item_table_lookup, items, false, NULL);
718+
config_parse_many_nulstr(fn, conf_dirs_nulstr, "Manager\0", config_item_table_lookup, items, false, NULL);
719719

720720
/* Traditionally "0" was used to turn off the default unit timeouts. Fix this up so that we used USEC_INFINITY
721721
* like everywhere else. */

src/coredump/coredump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static int parse_config(void) {
128128
{}
129129
};
130130

131-
return config_parse_many(PKGSYSCONFDIR "/coredump.conf",
131+
return config_parse_many_nulstr(PKGSYSCONFDIR "/coredump.conf",
132132
CONF_PATHS_NULSTR("systemd/coredump.conf.d"),
133133
"Coredump\0",
134134
config_item_table_lookup, items,

src/journal-remote/journal-remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ static int parse_config(void) {
11981198
{ "Remote", "TrustedCertificateFile", config_parse_path, 0, &arg_trust },
11991199
{}};
12001200

1201-
return config_parse_many(PKGSYSCONFDIR "/journal-remote.conf",
1201+
return config_parse_many_nulstr(PKGSYSCONFDIR "/journal-remote.conf",
12021202
CONF_PATHS_NULSTR("systemd/journal-remote.conf.d"),
12031203
"Remote\0", config_item_table_lookup, items,
12041204
false, NULL);

src/journal-remote/journal-upload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ static int parse_config(void) {
542542
{ "Upload", "TrustedCertificateFile", config_parse_path, 0, &arg_trust },
543543
{}};
544544

545-
return config_parse_many(PKGSYSCONFDIR "/journal-upload.conf",
545+
return config_parse_many_nulstr(PKGSYSCONFDIR "/journal-upload.conf",
546546
CONF_PATHS_NULSTR("systemd/journal-upload.conf.d"),
547547
"Upload\0", config_item_table_lookup, items,
548548
false, NULL);

src/journal/journald-server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ static int server_parse_proc_cmdline(Server *s) {
14741474
static int server_parse_config_file(Server *s) {
14751475
assert(s);
14761476

1477-
return config_parse_many(PKGSYSCONFDIR "/journald.conf",
1477+
return config_parse_many_nulstr(PKGSYSCONFDIR "/journald.conf",
14781478
CONF_PATHS_NULSTR("systemd/journald.conf.d"),
14791479
"Journal\0",
14801480
config_item_perf_lookup, journald_gperf_lookup,

src/login/logind.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ static int manager_dispatch_idle_action(sd_event_source *s, uint64_t t, void *us
10021002
static int manager_parse_config_file(Manager *m) {
10031003
assert(m);
10041004

1005-
return config_parse_many(PKGSYSCONFDIR "/logind.conf",
1005+
return config_parse_many_nulstr(PKGSYSCONFDIR "/logind.conf",
10061006
CONF_PATHS_NULSTR("systemd/logind.conf.d"),
10071007
"Login\0",
10081008
config_item_perf_lookup, logind_gperf_lookup,

src/network/networkd-conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
int manager_parse_config_file(Manager *m) {
3030
assert(m);
3131

32-
return config_parse_many(PKGSYSCONFDIR "/networkd.conf",
32+
return config_parse_many_nulstr(PKGSYSCONFDIR "/networkd.conf",
3333
CONF_PATHS_NULSTR("systemd/networkd.conf.d"),
3434
"DHCP\0",
3535
config_item_perf_lookup, networkd_gperf_lookup,

src/network/networkd-network.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static int network_load_one(Manager *manager, const char *filename) {
151151
if (r < 0)
152152
return r;
153153

154-
r = config_parse_many(filename, dropin_dirs_nulstr,
154+
r = config_parse_many_nulstr(filename, dropin_dirs_nulstr,
155155
"Match\0"
156156
"Link\0"
157157
"Network\0"

src/resolve/resolved-conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ int manager_parse_config_file(Manager *m) {
221221

222222
assert(m);
223223

224-
r = config_parse_many(PKGSYSCONFDIR "/resolved.conf",
224+
r = config_parse_many_nulstr(PKGSYSCONFDIR "/resolved.conf",
225225
CONF_PATHS_NULSTR("systemd/resolved.conf.d"),
226226
"Resolve\0",
227227
config_item_perf_lookup, resolved_gperf_lookup,

0 commit comments

Comments
 (0)
X Tutup