chiark / gitweb /
conf-parse: make syntax logging functions behave more like other log functons
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Jan 2015 21:05:20 +0000 (22:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Jan 2015 22:44:08 +0000 (23:44 +0100)
commit978553ce5e85a57a203be8256e59f304c8c46f3d
tree0287259d3a9eea9954a91ad69fa8c5dbb7f8430f
parent1535ef321f9f62c0825e811ebd25c09b88aab852
conf-parse: make syntax logging functions behave more like other log functons

In particular, don't patch the error number to EINVAL if 0, and don't
negate it.

(Also, add do {} while (false) around multi-line macro)
src/shared/conf-parser.c
src/shared/conf-parser.h