mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
sysctl: minor simplification
Let's place only one ternary operator.
This commit is contained in:
@@ -247,12 +247,12 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
OrderedHashmap *sysctl_options = NULL;
|
||||
int r = 0, k;
|
||||
OrderedHashmap *sysctl_options;
|
||||
|
||||
r = parse_argv(argc, argv);
|
||||
if (r <= 0)
|
||||
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
goto finish;
|
||||
|
||||
log_set_target(LOG_TARGET_AUTO);
|
||||
log_parse_environment();
|
||||
|
||||
Reference in New Issue
Block a user