diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2017-01-19 19:12:04 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2017-01-19 19:12:04 -0600 |
commit | b7020532fa35f032f7c36d81b219bcb7516535c1 (patch) | |
tree | 3c312447ba7bdb4ab6c4c842972093b7be37e521 | |
parent | f07d5cdbaf5d906b145b152d549915271d355798 (diff) |
nqdasm: simplify
-rw-r--r-- | nqdasm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |