resolv: improve comments about nserv and nservall

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.

	* resolv/res_init.c (__res_vinit): Improve comments about nserv
	and nservall.
This commit is contained in:
Aurelien Jarno 2015-01-06 08:33:43 -08:00 committed by H.J. Lu
parent 9300797ee9
commit 5fe55e9c65
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2015-01-06 Aurelien Jarno <aurelien@aurel32.net>
* resolv/res_init.c (__res_vinit): Improve comments about nserv
and nservall.
2015-01-06 Ondřej Bílka <neleai@seznam.cz>
* sysdeps/unix/sysv/linux/check_pf.c (make_request):

View File

@ -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;