[PATCH 1/4] resolv: improve comments about nserv and nservall
Siddhesh Poyarekar
siddhesh@redhat.com
Wed Jun 18 09:11:00 GMT 2014
On Fri, Jun 13, 2014 at 05:32:10PM +0200, Aurelien Jarno wrote:
> The current comments concerning nserv and nservall are not really clear
> and lead to confusion when reviewing an already complex code. Improve
> them, there real meaning have been confirmed by a code analysis.
>
> 2014-06-13 Aurelien Jarno <aurelien@aurel32.net>
>
> * resolv/res_init.c (__res_vinit): Improve comments
> about nserv and nservall.
I already acked this.
Siddhesh
>
> diff --git a/resolv/res_init.c b/resolv/res_init.c
> index ea133f8..bdec4d9 100644
> --- a/resolv/res_init.c
> +++ b/resolv/res_init.c
> @@ -153,9 +153,9 @@ __res_vinit(res_state statp, int preinit) {
> char *cp, **pp;
> int n;
> char buf[BUFSIZ];
> - int nserv = 0; /* number of nameserver records read from file */
> + int nserv = 0; /* number of IPv4 nameservers read from file */
> #ifdef _LIBC
> - int nservall = 0; /* number of NS records read, nserv IPv4 only */
> + int nservall = 0; /* number of (IPv4 + IPV6) nameservers read from file */
> #endif
> int haveenv = 0;
> int havesearch = 0;
> --
> 2.0.0
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140618/076ab341/attachment.sig>
More information about the Libc-alpha
mailing list