diff options
author | hiren <hiren@FreeBSD.org> | 2014-08-25 05:52:05 +0000 |
---|---|---|
committer | hiren <hiren@FreeBSD.org> | 2014-08-25 05:52:05 +0000 |
commit | b084c5d09c17aec7a11c034e4130a9ae02bcf563 (patch) | |
tree | 4f86bf3f82ea527aaf43599525794aff3d8b4a07 /usr.sbin/wlandebug | |
parent | eab77b845c7dd546e6ea27d8e2555d6c6b940d6f (diff) | |
download | FreeBSD-src-b084c5d09c17aec7a11c034e4130a9ae02bcf563.zip FreeBSD-src-b084c5d09c17aec7a11c034e4130a9ae02bcf563.tar.gz |
Fix a typo to catch correct condition.
Diffstat (limited to 'usr.sbin/wlandebug')
-rw-r--r-- | usr.sbin/wlandebug/wlandebug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/wlandebug/wlandebug.c b/usr.sbin/wlandebug/wlandebug.c index f0e325c..9bec123 100644 --- a/usr.sbin/wlandebug/wlandebug.c +++ b/usr.sbin/wlandebug/wlandebug.c @@ -177,7 +177,7 @@ main(int argc, char *argv[]) setoid(oid, sizeof(oid), NULL); argc -= 1, argv += 1; } else if (strcmp(argv[1], "-i") == 0) { - if (argc < 2) + if (argc <= 2) errx(1, "missing interface name for -i option"); if (strncmp(argv[2], "wlan", 4) != 0) errx(1, "expecting a wlan interface name"); |