summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2007-02-14 10:26:36 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2007-02-14 10:26:36 +0000
commitae343f170feb5857e5814c8158dfecd9b8f56837 (patch)
treea7dbe71e7b53d074c6ed8a403630a2a21b2f039c
parentd5a77a1b9d58f891b13e6d77a371e4bb2824cd0f (diff)
remove size_t and int mixup. same as getaddrinfo.c 1.30 -> 1.31.
-rw-r--r--lib/libc/net/gethostnamadr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c
index d1c7d80df62..2f5113d5e4e 100644
--- a/lib/libc/net/gethostnamadr.c
+++ b/lib/libc/net/gethostnamadr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gethostnamadr.c,v 1.68 2005/08/06 20:30:03 espie Exp $ */
+/* $OpenBSD: gethostnamadr.c,v 1.69 2007/02/14 10:26:35 itojun Exp $ */
/*-
* Copyright (c) 1985, 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -362,11 +362,8 @@ getanswer(const querybuf *answer, int anslen, const char *qname, int qtype)
}
}
if (!haveanswer) {
- int nn;
-
host.h_name = bp;
- nn = strlen(bp) + 1; /* for the \0 */
- bp += nn;
+ bp += strlen(bp) + 1; /* for the \0 */
}
bp += sizeof(align) - ((u_long)bp % sizeof(align));