diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-22 13:05:31 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-22 18:00:44 +0200 |
commit | fec5929f8b0479be780dd730f276b8c9738ac48e (patch) | |
tree | dc211cd535790ebbb5c6cdbd10ef4696f267f310 /src/shared/conf-parser.c | |
parent | logind: use _cleanup_ in one more place (diff) | |
download | systemd-fec5929f8b0479be780dd730f276b8c9738ac48e.tar.xz systemd-fec5929f8b0479be780dd730f276b8c9738ac48e.zip |
shared/conf-parser: drop redundant cast to boolean
parse_boolean returns either 0 or 1 or error, and we checked for errors
earlier already.
Diffstat (limited to 'src/shared/conf-parser.c')
-rw-r--r-- | src/shared/conf-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 90f08252ab..02a27e3a88 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -703,7 +703,7 @@ int config_parse_tristate( return 0; } - *t = !!k; + *t = k; return 0; } |