journal-remote: convert to parse_boolean_argument() and fix type confusion
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 15 Feb 2021 18:47:41 +0000 (19:47 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Feb 2021 20:08:50 +0000 (21:08 +0100)
commit9c7f2201731fe04cc41aa067c8be21d35b803bce
tree37062ed9b0440e546fbf5f3407b80d89b1bb5f49
parentc3470872c6c12d64c895643bd3b02022beb0589e
journal-remote: convert to parse_boolean_argument() and fix type confusion

We were passing a reference to 'int arg_seal' to config_parse_bool(),
which expects a 'bool *'. Luckily, this would work, because 'bool'
is smaller than 'int', so config_parse_bool() would set the least-significant
byte of arg_seal. At least I think so. But let's use consistent types ;)

Also, modernize style a bit and don't use integers in boolean context.
src/journal-remote/journal-remote-main.c
src/journal-remote/journal-upload.c