X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fconf-parser.c;h=0f6bf85b0386809443bc3bdb3029b6445ea11ed1;hp=9190ec9b85bfd1bef75d61bc1ecaa4b3d63918c6;hb=a61ff8a1eea921800d6225ff137b24e0a0fb60e1;hpb=d039bb6e747bf119406f28a63fac10b7970260b7 diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 9190ec9b8..0f6bf85b0 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -100,7 +100,7 @@ int config_item_perf_lookup( else { char *key; - key = strjoin(section, ".", lvalue, NULL); + key = strjoin(section, ".", lvalue); if (!key) return -ENOMEM; @@ -507,8 +507,10 @@ int config_parse_many( DEFINE_PARSER(int, int, safe_atoi); DEFINE_PARSER(long, long, safe_atoli); +#if 0 /// UNNEEDED by elogind DEFINE_PARSER(uint16, uint16_t, safe_atou16); DEFINE_PARSER(uint32, uint32_t, safe_atou32); +#endif // 0 DEFINE_PARSER(uint64, uint64_t, safe_atou64); DEFINE_PARSER(unsigned, unsigned, safe_atou); DEFINE_PARSER(double, double, safe_atod); @@ -788,7 +790,7 @@ int config_parse_strv(const char *unit, for (;;) { char *word = NULL; - r = extract_first_word(&rvalue, &word, WHITESPACE, EXTRACT_QUOTES|EXTRACT_RETAIN_ESCAPE); + r = extract_first_word(&rvalue, &word, NULL, EXTRACT_QUOTES|EXTRACT_RETAIN_ESCAPE); if (r == 0) break; if (r == -ENOMEM)