diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2007-02-14 05:48:47 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2007-02-14 05:48:47 +0000 |
commit | da1f8acac0f7edb60e72ff43ab3d7df2fa415ae3 (patch) | |
tree | 0f5632b00598d9b58bc8c73bbab443e7ee8c999c /lib/libc | |
parent | d562f42b8545efc925b551ca82a3f37a256775ab (diff) |
Remove int pretending to be a size_t.
OK millert@.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/getaddrinfo.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index 46a44e517c0..01cc3a292b2 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getaddrinfo.c,v 1.57 2006/11/17 01:11:23 itojun Exp $ */ +/* $OpenBSD: getaddrinfo.c,v 1.58 2007/02/14 05:48:46 ray Exp $ */ /* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ /* @@ -1115,11 +1115,8 @@ getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, } } if (!haveanswer) { - int nn; - canonname = bp; - nn = strlen(bp) + 1; /* for the \0 */ - bp += nn; + bp += strlen(bp) + 1; /* for the \0 */ } /* don't overwrite pai */ |