diff options
author | 2007-02-14 10:26:35 +0000 | |
---|---|---|
committer | 2007-02-14 10:26:35 +0000 | |
commit | 357d64d14fb685970b50a108ae72fcf5488cc05e (patch) | |
tree | 0171bdfa41fe3ed4c500513a66289158fb4cad1c | |
parent | more refinements for the interactive commands section; ok otto (diff) | |
download | wireguard-openbsd-357d64d14fb685970b50a108ae72fcf5488cc05e.tar.xz wireguard-openbsd-357d64d14fb685970b50a108ae72fcf5488cc05e.zip |
remove size_t and int mixup. same as getaddrinfo.c 1.30 -> 1.31.
-rw-r--r-- | lib/libc/net/gethostnamadr.c | 7 |
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)); |