X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=disassembler%2Fargs.c;h=a10c078cd14fd73789aef43cf2213e25629d24f1;hb=HEAD;hp=08e3a402c3ac25cb68b5ae7d7adb9595876e3654;hpb=6741c3e236e8a3cb812c2028d18d7a7f91bab5f5;p=b43-tools.git diff --git a/disassembler/args.c b/disassembler/args.c index 08e3a40..a10c078 100644 --- a/disassembler/args.c +++ b/disassembler/args.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2007 Michael Buesch + * Copyright (C) 2006-2007 Michael Buesch * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 @@ -22,13 +22,12 @@ #include -int _debug; - struct cmdline_args cmdargs = { - .arch = 5, - .informat = FMT_B43, - .print_addresses = 0, - .unknown_decode = 0, + .debug = 0, + .arch = 5, + .informat = FMT_B43, + .print_addresses = 0, + .unknown_decode = 0, }; #define ARG_MATCH 0 @@ -139,7 +138,7 @@ int parse_args(int argc, char **argv) } else if ((res = cmp_arg(argv, &i, "--unkdec", "-u", NULL)) == ARG_MATCH) { cmdargs.unknown_decode = 1; } else if ((res = cmp_arg(argv, &i, "--debug", "-d", NULL)) == ARG_MATCH) { - _debug++; + cmdargs.debug++; } else if ((res = cmp_arg(argv, &i, "--arch", "-a", ¶m)) == ARG_MATCH) { unsigned long arch; char *tail;