Signed-off-by: Michael Buesch <mb@bu3sch.de>
PREFIX ?= /usr/local
CFLAGS ?= -O2 -fomit-frame-pointer
CFLAGS += -std=gnu99 -Wall -D_BSD_SOURCE -D_GNU_SOURCE
PREFIX ?= /usr/local
CFLAGS ?= -O2 -fomit-frame-pointer
CFLAGS += -std=gnu99 -Wall -D_BSD_SOURCE -D_GNU_SOURCE
+SPARSEFLAGS = $(CFLAGS) -D__transparent_union__=__unused__ -D_STRING_ARCH_unaligned=1
LDFLAGS ?=
BIN = b43-dasm
LDFLAGS ?=
BIN = b43-dasm
if (param) {
/* Skip the parameter on the next iteration. */
(*pos)++;
if (param) {
/* Skip the parameter on the next iteration. */
(*pos)++;
fprintf(stderr, "%s needs a parameter\n", arg);
return ARG_ERROR;
}
fprintf(stderr, "%s needs a parameter\n", arg);
return ARG_ERROR;
}
outfile_name = NULL;
for (i = 1; i < argc; i++) {
outfile_name = NULL;
for (i = 1; i < argc; i++) {
- if ((res = cmp_arg(argv, &i, "--help", "-h", 0)) == ARG_MATCH) {
+ if ((res = cmp_arg(argv, &i, "--help", "-h", NULL)) == ARG_MATCH) {
usage(argc, argv);
return 1;
usage(argc, argv);
return 1;
- } else if ((res = cmp_arg(argv, &i, "--nohdr", 0, 0)) == ARG_MATCH) {
+ } else if ((res = cmp_arg(argv, &i, "--nohdr", NULL, NULL)) == ARG_MATCH) {
- } else if ((res = cmp_arg(argv, &i, "--paddr", 0, 0)) == ARG_MATCH) {
+ } else if ((res = cmp_arg(argv, &i, "--paddr", NULL, NULL)) == ARG_MATCH) {
cmdargs.print_addresses = 1;
cmdargs.print_addresses = 1;
- } else if ((res = cmp_arg(argv, &i, "--debug", "-d", 0)) == ARG_MATCH) {
+ } else if ((res = cmp_arg(argv, &i, "--debug", "-d", NULL)) == ARG_MATCH) {
_debug++;
} else if ((res = cmp_arg(argv, &i, "--arch", "-a", ¶m)) == ARG_MATCH) {
unsigned long arch;
_debug++;
} else if ((res = cmp_arg(argv, &i, "--arch", "-a", ¶m)) == ARG_MATCH) {
unsigned long arch;
-FILE *infile;
-FILE *outfile;
-const char *infile_name;
-const char *outfile_name;
+extern FILE *infile;
+extern FILE *outfile;
+extern const char *infile_name;
+extern const char *outfile_name;
#endif /* B43_DASM_MAIN_H_ */
#endif /* B43_DASM_MAIN_H_ */