summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2013-04-01 08:54:08 +0000
committerEric Faurot <eric@cvs.openbsd.org>2013-04-01 08:54:08 +0000
commit155340f2781db8d15586c3fb6304cc7c3349ddc8 (patch)
tree2fcef1b1dd98a3918e06dd056650da675c22d3de
parent1138cf8831a025ad67ea880c3a500a17d4d71602 (diff)
rename field
-rw-r--r--lib/libc/asr/asr_private.h4
-rw-r--r--lib/libc/asr/gethostnamadr_async.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/asr/asr_private.h b/lib/libc/asr/asr_private.h
index 7a779fcd0d7..6690f1ddcd3 100644
--- a/lib/libc/asr/asr_private.h
+++ b/lib/libc/asr/asr_private.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asr_private.h,v 1.12 2013/04/01 07:52:06 eric Exp $ */
+/* $OpenBSD: asr_private.h,v 1.13 2013/04/01 08:54:06 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -235,7 +235,7 @@ struct async {
struct async *subq;
char addr[16];
int addrlen;
- int h_errno;
+ int subq_h_errno;
} hostnamadr;
struct {
diff --git a/lib/libc/asr/gethostnamadr_async.c b/lib/libc/asr/gethostnamadr_async.c
index be9bb1f392e..625b236b74b 100644
--- a/lib/libc/asr/gethostnamadr_async.c
+++ b/lib/libc/asr/gethostnamadr_async.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gethostnamadr_async.c,v 1.14 2013/03/29 20:04:17 eric Exp $ */
+/* $OpenBSD: gethostnamadr_async.c,v 1.15 2013/04/01 08:54:07 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -312,7 +312,7 @@ gethostnamadr_async_run(struct async *as, struct async_res *ar)
/* If we got a packet but no anwser, use the next DB. */
if (ar->ar_count == 0) {
free(ar->ar_data);
- as->as.hostnamadr.h_errno = ar->ar_h_errno;
+ as->as.hostnamadr.subq_h_errno = ar->ar_h_errno;
async_set_state(as, ASR_STATE_NEXT_DB);
break;
}
@@ -358,8 +358,8 @@ gethostnamadr_async_run(struct async *as, struct async_res *ar)
case ASR_STATE_NOT_FOUND:
ar->ar_errno = 0;
- if (as->as.hostnamadr.h_errno)
- ar->ar_h_errno = as->as.hostnamadr.h_errno;
+ if (as->as.hostnamadr.subq_h_errno)
+ ar->ar_h_errno = as->as.hostnamadr.subq_h_errno;
else
ar->ar_h_errno = HOST_NOT_FOUND;
async_set_state(as, ASR_STATE_HALT);