mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 11:16:33 +00:00
tools/wlanstats: fix -Wunused-but-set-variable
The "allnodes" code is currently #if 0 so also #if 0 the setting of the command line option and variable in order to keep wlanstats compiling. Sponsored by: The FreeBSD Foundation MFC after: 10 days
This commit is contained in:
parent
c45d05b718
commit
530c13c540
|
@ -168,18 +168,26 @@ main(int argc, char *argv[])
|
|||
struct ether_addr *ea;
|
||||
const uint8_t *mac = NULL;
|
||||
const char *ifname;
|
||||
#if 0
|
||||
int allnodes = 0;
|
||||
#endif
|
||||
int c, mode;
|
||||
|
||||
ifname = getenv("WLAN");
|
||||
if (ifname == NULL)
|
||||
ifname = "wlan0";
|
||||
wf = wlanstats_new(ifname, getfmt("default"));
|
||||
#if 0
|
||||
while ((c = getopt(argc, argv, "ahi:lm:o:")) != -1) {
|
||||
#else
|
||||
while ((c = getopt(argc, argv, "hi:lm:o:")) != -1) {
|
||||
#endif
|
||||
switch (c) {
|
||||
#if 0
|
||||
case 'a':
|
||||
allnodes++;
|
||||
break;
|
||||
#endif
|
||||
case 'h':
|
||||
usage();
|
||||
exit(0);
|
||||
|
|
Loading…
Reference in a new issue