From 155340f2781db8d15586c3fb6304cc7c3349ddc8 Mon Sep 17 00:00:00 2001 From: Eric Faurot Date: Mon, 1 Apr 2013 08:54:08 +0000 Subject: rename field --- lib/libc/asr/asr_private.h | 4 ++-- lib/libc/asr/gethostnamadr_async.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/libc/asr') 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 * @@ -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 * @@ -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); -- cgit v1.2.3