From b7020532fa35f032f7c36d81b219bcb7516535c1 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Thu, 19 Jan 2017 19:12:04 -0600 Subject: nqdasm: simplify --- nqdasm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nqdasm.c') diff --git a/nqdasm.c b/nqdasm.c index bb26d81..04b460c 100644 --- a/nqdasm.c +++ b/nqdasm.c @@ -139,7 +139,7 @@ static void disassemble(FILE *in, FILE *out) } } -static void usage(const char *progname) +static void usage(void) { printf("usage: %s [-o output] [input]\n", progname); printf(" %s -h\n", progname); @@ -161,7 +161,7 @@ int main(int argc, char **argv) for (int opt; (opt = getopt(argc, argv, "+ho:")) != -1;) { switch (opt) { case 'h': - usage(argv[0]); + usage(); return 0; case 'o': outname = optarg; -- cgit v1.2.3