From ae343f170feb5857e5814c8158dfecd9b8f56837 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Wed, 14 Feb 2007 10:26:36 +0000 Subject: remove size_t and int mixup. same as getaddrinfo.c 1.30 -> 1.31. --- lib/libc/net/gethostnamadr.c | 7 ++----- 1 file 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)); -- cgit v1.2.3