summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifvlan.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-06-23 23:49:52 +0000
committerdelphij <delphij@FreeBSD.org>2009-06-23 23:49:52 +0000
commite55dc5c4eb8e9b93da21c537889150f3b177e253 (patch)
tree49d38a468ae2e816db3ae5582c13e8b2d759fc28 /sbin/ifconfig/ifvlan.c
parent6890bf4027e4cc291de70a201516b9ba03dc3cf7 (diff)
downloadFreeBSD-src-e55dc5c4eb8e9b93da21c537889150f3b177e253.zip
FreeBSD-src-e55dc5c4eb8e9b93da21c537889150f3b177e253.tar.gz
- Use size_t instead of int when appropriate;
- Use C99 sparse initialization. With these changes ifconfig(8) is WARNS=2 clean.
Diffstat (limited to 'sbin/ifconfig/ifvlan.c')
-rw-r--r--sbin/ifconfig/ifvlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifvlan.c b/sbin/ifconfig/ifvlan.c
index 0f65846..c59cac1 100644
--- a/sbin/ifconfig/ifvlan.c
+++ b/sbin/ifconfig/ifvlan.c
@@ -192,7 +192,7 @@ static __constructor void
vlan_ctor(void)
{
#define N(a) (sizeof(a) / sizeof(a[0]))
- int i;
+ size_t i;
for (i = 0; i < N(vlan_cmds); i++)
cmd_register(&vlan_cmds[i]);
OpenPOWER on IntegriCloud