From d0e9ceb2b583bf40338880e16b5908b599eb9038 Mon Sep 17 00:00:00 2001 From: polluks2 <74630735+polluks2@users.noreply.github.com> Date: Sun, 3 Apr 2022 00:06:45 +0200 Subject: [PATCH] Some clean-up One exit() too much file is not optional --- util/gamate/gamate-fixcart.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/util/gamate/gamate-fixcart.c b/util/gamate/gamate-fixcart.c index ba09ac083..65c0c5311 100644 --- a/util/gamate/gamate-fixcart.c +++ b/util/gamate/gamate-fixcart.c @@ -1,4 +1,3 @@ - #include #include @@ -7,8 +6,7 @@ unsigned int n, i, c; void usage(char *arg) { - printf("usage: %s [file]\n", arg); - exit(-1); + printf("usage: %s file\n", arg); } int main(int argc, char *argv[]) { @@ -33,5 +31,5 @@ int main(int argc, char *argv[]) { fputc((n >> 8) & 0xff, in); fclose(in); - return (0); + return 0; }