diff options
author | Michael Adam <obnox@samba.org> | 2015-11-12 09:47:59 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2016-01-11 12:25:31 +0100 |
commit | bf65160ed2c9f07527151823d7ac38b187060643 (patch) | |
tree | 419dc251ec365efe5366877949b485b0c4bb595a | |
parent | a42f6589c795673cb89cdf9909d2f48de5048c75 (diff) | |
download | samba-bf65160ed2c9f07527151823d7ac38b187060643.tar.gz |
nwrap: rename _ai -> ai_new in nwrap_files_getaddrinfo()
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | lib/nss_wrapper/nss_wrapper.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c index 72181b91161..429102aadfa 100644 --- a/lib/nss_wrapper/nss_wrapper.c +++ b/lib/nss_wrapper/nss_wrapper.c @@ -3511,7 +3511,7 @@ static int nwrap_files_getaddrinfo(const char *name, { struct nwrap_entlist *el; struct hostent *he; - struct addrinfo *_ai = NULL; + struct addrinfo *ai_new = NULL; struct addrinfo *ai_head = NULL; struct addrinfo *ai_cur = NULL; char *h_name_lower; @@ -3575,7 +3575,7 @@ static int nwrap_files_getaddrinfo(const char *name, rc2 = nwrap_convert_he_ai(he, port, hints, - &_ai, + &ai_new, skip_canonname); if (rc2 != 0) { NWRAP_LOG(NWRAP_LOG_ERROR, "Error converting he to ai"); @@ -3587,12 +3587,12 @@ static int nwrap_files_getaddrinfo(const char *name, skip_canonname = true; if (ai_head == NULL) { - ai_head = _ai; + ai_head = ai_new; } if (ai_cur != NULL) { - ai_cur->ai_next = _ai; + ai_cur->ai_next = ai_new; } - ai_cur = _ai; + ai_cur = ai_new; } if (ai_head != NULL) { @@ -3600,7 +3600,7 @@ static int nwrap_files_getaddrinfo(const char *name, } *ai = ai_head; - *ai_tail = _ai; + *ai_tail = ai_new; return rc; } |