aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipfw
diff options
context:
space:
mode:
authorBen Laurie <benl@FreeBSD.org>2011-06-18 13:56:33 +0000
committerBen Laurie <benl@FreeBSD.org>2011-06-18 13:56:33 +0000
commit5f301949ef1a0e2444e6a0b6700c8bcf400498fc (patch)
tree6edd0c06e1319e9f8e2572723af2f2d72fabda97 /sbin/ipfw
parentf404863979cd0d00193099825904396d5f30cb34 (diff)
downloadsrc-5f301949ef1a0e2444e6a0b6700c8bcf400498fc.tar.gz
src-5f301949ef1a0e2444e6a0b6700c8bcf400498fc.zip
Fix clang warnings.
Approved by: philip (mentor)
Notes
Notes: svn path=/head/; revision=223262
Diffstat (limited to 'sbin/ipfw')
-rw-r--r--sbin/ipfw/ipfw2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c
index 97d98a39f044..64e5eb1e9f20 100644
--- a/sbin/ipfw/ipfw2.c
+++ b/sbin/ipfw/ipfw2.c
@@ -21,6 +21,7 @@
*/
#include <sys/types.h>
+#include <sys/param.h>
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/sysctl.h>
@@ -3567,7 +3568,7 @@ read_options:
}
if (lookup_key[j] <= 0)
errx(EX_USAGE, "format: cannot lookup on %s", *av);
- c->d[1] = j; // i converted to option
+ __PAST_END(c->d, 1) = j; // i converted to option
av++;
cmd->arg1 = strtoul(*av, &p, 0);
if (p && *p)