summaryrefslogtreecommitdiff
path: root/nqdasm.c
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2017-01-19 19:12:04 -0600
committerBobby Bingham <koorogi@koorogi.info>2017-01-19 19:12:04 -0600
commitb7020532fa35f032f7c36d81b219bcb7516535c1 (patch)
tree3c312447ba7bdb4ab6c4c842972093b7be37e521 /nqdasm.c
parentf07d5cdbaf5d906b145b152d549915271d355798 (diff)
nqdasm: simplify
Diffstat (limited to 'nqdasm.c')
-rw-r--r--nqdasm.c4
1 files changed, 2 insertions, 2 deletions
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;