Created
August 16, 2017 15:38
-
-
Save dhess/0b26bc0440947faa49a579a4408b1700 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clang -g -O2 -DHAVE_CONFIG_H -c -o wakelan.o wakelan.c | |
| wakelan.c:39:26: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] | |
| static void *use_rcsid = (void *)((char *)&use_rcsid || (void *)&rcsid); | |
| ^ | |
| wakelan.c:49:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] | |
| exit (0); | |
| ^ | |
| wakelan.c:49:5: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' | |
| wakelan.c:65:10: warning: implicitly declaring library function 'toupper' with type 'int (int)' [-Wimplicit-function-declaration] | |
| c = toupper(*str++); | |
| ^ | |
| wakelan.c:65:10: note: include the header <ctype.h> or explicitly provide a declaration for 'toupper' | |
| wakelan.c:104:17: warning: implicit declaration of function 'getopt' is invalid in C99 [-Wimplicit-function-declaration] | |
| while ((c = getopt(argc, argv, "hvp:m:b:")) != EOF) { | |
| ^ | |
| wakelan.c:106:25: error: use of undeclared identifier 'optarg' | |
| case 'b': target = optarg; break; | |
| ^ | |
| wakelan.c:107:25: error: use of undeclared identifier 'optarg' | |
| case 'm': mac = optarg; break; | |
| ^ | |
| wakelan.c:108:30: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] | |
| case 'p': bport = htons(atoi(optarg)); break; | |
| ^ | |
| wakelan.c:108:35: error: use of undeclared identifier 'optarg' | |
| case 'p': bport = htons(atoi(optarg)); break; | |
| ^ | |
| wakelan.c:108:35: error: use of undeclared identifier 'optarg' | |
| wakelan.c:108:35: error: use of undeclared identifier 'optarg' | |
| wakelan.c:108:35: error: use of undeclared identifier 'optarg' | |
| wakelan.c:124:14: error: use of undeclared identifier 'optind' | |
| if (argv[optind] != NULL) { | |
| ^ | |
| wakelan.c:125:13: error: use of undeclared identifier 'optind' | |
| mac = argv[optind++]; | |
| ^ | |
| wakelan.c:127:14: error: use of undeclared identifier 'optind' | |
| if (argv[optind] != NULL) { | |
| ^ | |
| wakelan.c:128:16: error: use of undeclared identifier 'optind' | |
| target = argv[optind++]; | |
| ^ | |
| wakelan.c:130:14: error: use of undeclared identifier 'optind' | |
| if (argv[optind] != NULL) { | |
| ^ | |
| wakelan.c:131:26: error: use of undeclared identifier 'optind' | |
| bport = htons(atoi(argv[optind++])); | |
| ^ | |
| wakelan.c:131:26: error: use of undeclared identifier 'optind' | |
| wakelan.c:131:26: error: use of undeclared identifier 'optind' | |
| wakelan.c:131:26: error: use of undeclared identifier 'optind' | |
| wakelan.c:133:14: error: use of undeclared identifier 'optind' | |
| if (argv[optind] != NULL) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment