diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-02 22:03:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-02 22:03:41 +0000 |
commit | 0e0c76b0b9681df1f311463288e4181d8863e2f6 (patch) | |
tree | 38ba8f0c85479afc56218d93db9c123544022433 | |
parent | 46de5f34a313958c5ed1576a0fb24f4dbc1a52fe (diff) |
make lint a bit happier
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 92cb5405fec..738cad55f60 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.237 2010/06/26 19:51:12 claudio Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.238 2010/07/02 22:03:40 deraadt Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -4686,23 +4686,23 @@ in6_getprefix(const char *plen, int which) int prefix(void *val, int size) { - u_char *name = (u_char *)val; + u_char *nam = (u_char *)val; int byte, bit, plen = 0; for (byte = 0; byte < size; byte++, plen += 8) - if (name[byte] != 0xff) + if (nam[byte] != 0xff) break; if (byte == size) return (plen); for (bit = 7; bit != 0; bit--, plen++) - if (!(name[byte] & (1 << bit))) + if (!(nam[byte] & (1 << bit))) break; for (; bit != 0; bit--) - if (name[byte] & (1 << bit)) + if (nam[byte] & (1 << bit)) return (0); byte++; for (; byte < size; byte++) - if (name[byte]) + if (nam[byte]) return (0); return (plen); } @@ -4808,6 +4808,7 @@ sec2str(time_t total) } #endif /* INET6 */ +/*ARGSUSED*/ void setiflladdr(const char *addr, int param) { |