aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/wlandebug
diff options
context:
space:
mode:
authorHiren Panchasara <hiren@FreeBSD.org>2014-08-25 05:52:05 +0000
committerHiren Panchasara <hiren@FreeBSD.org>2014-08-25 05:52:05 +0000
commit3a1abb4c43c12d7725ab0e6dd5b0fd5db6f99b2e (patch)
tree4f86bf3f82ea527aaf43599525794aff3d8b4a07 /usr.sbin/wlandebug
parentec2aeb2fc1c88ea072ef0c53fe6102eb5a9bd52f (diff)
downloadsrc-3a1abb4c43c12d7725ab0e6dd5b0fd5db6f99b2e.tar.gz
src-3a1abb4c43c12d7725ab0e6dd5b0fd5db6f99b2e.zip
Fix a typo to catch correct condition.
Notes
Notes: svn path=/head/; revision=270518
Diffstat (limited to 'usr.sbin/wlandebug')
-rw-r--r--usr.sbin/wlandebug/wlandebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/wlandebug/wlandebug.c b/usr.sbin/wlandebug/wlandebug.c
index f0e325c52479..9bec123b5f63 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");