1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-12 20:09:14 +02:00

uptime: simplify -fsanitize=leak pacification

* src/uptime.c (uptime): Exit here ...
(main): ... instead of here.
This commit is contained in:
Paul Eggert
2022-01-31 08:42:07 -08:00
parent 701fcbc78e
commit d0e3b0ae1a
+1 -3
View File
@@ -186,7 +186,7 @@ uptime (char const *filename, int options)
print_uptime (n_users, utmp_buf);
IF_LINT (free (utmp_buf));
exit (EXIT_SUCCESS);
}
void
@@ -252,6 +252,4 @@ main (int argc, char **argv)
error (0, 0, _("extra operand %s"), quote (argv[optind + 1]));
usage (EXIT_FAILURE);
}
return EXIT_SUCCESS;
}