diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-05-22 13:10:17 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-05-22 13:18:44 +0200 |
commit | a2106925257945fa2cfc8735fcb49ebcaff609d6 (patch) | |
tree | d3b3968918f8bbf4767c5d77f6ecedacaad9f367 /src/timesync | |
parent | 1f12b48a730bfbca991d0ae51e3a740d59faf201 (diff) | |
download | systemd-a2106925257945fa2cfc8735fcb49ebcaff609d6.tar.gz |
tree-wide: port over all code to the new CONFIG_PARSER_PROTOTYPE() macro
This makes most header files easier to look at. Also Emacs gets really
slow when browsing through large sections of overly long prototypes,
which is much improved by this macro.
We should probably not do something similar with too many other cases,
as macros like this might help readability for some, but make it worse
for others. But I think given the complexity of this specific prototype
and how often we use it, it's worth doing.
Diffstat (limited to 'src/timesync')
-rw-r--r-- | src/timesync/timesyncd-conf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timesync/timesyncd-conf.h b/src/timesync/timesyncd-conf.h index 7950c7e7fb..1e12d05825 100644 --- a/src/timesync/timesyncd-conf.h +++ b/src/timesync/timesyncd-conf.h @@ -14,7 +14,7 @@ const struct ConfigPerfItem* timesyncd_gperf_lookup(const char *key, GPERF_LEN_T int manager_parse_server_string(Manager *m, ServerType type, const char *string); -int config_parse_servers(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); +CONFIG_PARSER_PROTOTYPE(config_parse_servers); int manager_parse_config_file(Manager *m); int manager_parse_fallback_string(Manager *m, const char *string); |