summaryrefslogtreecommitdiff
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-07-30 14:13:30 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-07-30 14:13:30 +0000
commitc41b6dba69bd93d2e04bc2ed55d98a3958435fb1 (patch)
treecc0f67724cc9bb4f3197332accbe957bc06a70db /sbin/ifconfig
parent4dc94fd36c9f43e8b0ee74e069228b4c98858498 (diff)
strlen returns size_t.
ok henning, mbalmer.
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifconfig.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index baabf0cff22..66662cbda3a 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.183 2007/07/30 12:34:30 pyr Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.184 2007/07/30 14:13:29 pyr Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -771,7 +771,8 @@ printif(char *ifname, int ifaliases)
const char *namep;
char *oname = NULL;
struct ifreq *ifrp;
- int nlen = 0, count = 0, noinet = 1;
+ int count = 0, noinet = 1;
+ size_t nlen = 0;
if (ifname) {
if ((oname = strdup(ifname)) == NULL)