diff options
author | itojun <> | 2007-02-14 10:26:35 +0000 |
---|---|---|
committer | itojun <> | 2007-02-14 10:26:35 +0000 |
commit | dd5251e43f48ce4b74d07850b44ff2c5cc0733e6 (patch) | |
tree | 9c64a97cf67f5e00272d090e6d47336659337b26 /src | |
parent | 7230877724a09677d61868f48bf4159e27e4da3e (diff) | |
download | openbsd-dd5251e43f48ce4b74d07850b44ff2c5cc0733e6.tar.gz openbsd-dd5251e43f48ce4b74d07850b44ff2c5cc0733e6.tar.bz2 openbsd-dd5251e43f48ce4b74d07850b44ff2c5cc0733e6.zip |
remove size_t and int mixup. same as getaddrinfo.c 1.30 -> 1.31.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libc/net/gethostnamadr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c index d1c7d80df6..2f5113d5e4 100644 --- a/src/lib/libc/net/gethostnamadr.c +++ b/src/lib/libc/net/gethostnamadr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gethostnamadr.c,v 1.68 2005/08/06 20:30:03 espie Exp $ */ | 1 | /* $OpenBSD: gethostnamadr.c,v 1.69 2007/02/14 10:26:35 itojun Exp $ */ |
2 | /*- | 2 | /*- |
3 | * Copyright (c) 1985, 1988, 1993 | 3 | * Copyright (c) 1985, 1988, 1993 |
4 | * The Regents of the University of California. All rights reserved. | 4 | * 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) | |||
362 | } | 362 | } |
363 | } | 363 | } |
364 | if (!haveanswer) { | 364 | if (!haveanswer) { |
365 | int nn; | ||
366 | |||
367 | host.h_name = bp; | 365 | host.h_name = bp; |
368 | nn = strlen(bp) + 1; /* for the \0 */ | 366 | bp += strlen(bp) + 1; /* for the \0 */ |
369 | bp += nn; | ||
370 | } | 367 | } |
371 | 368 | ||
372 | bp += sizeof(align) - ((u_long)bp % sizeof(align)); | 369 | bp += sizeof(align) - ((u_long)bp % sizeof(align)); |