svn commit: r291359 - head/tools/regression/lib/libc/resolv

Garrett Cooper ngie at FreeBSD.org
Thu Nov 26 07:04:00 UTC 2015


Author: ngie
Date: Thu Nov 26 07:03:59 2015
New Revision: 291359
URL: https://svnweb.freebsd.org/changeset/base/291359

Log:
  Skip over lines that start with # (comments)
  
  MFC after: 3 days

Modified:
  head/tools/regression/lib/libc/resolv/resolv.c

Modified: head/tools/regression/lib/libc/resolv/resolv.c
==============================================================================
--- head/tools/regression/lib/libc/resolv/resolv.c	Thu Nov 26 07:03:26 2015	(r291358)
+++ head/tools/regression/lib/libc/resolv/resolv.c	Thu Nov 26 07:03:59 2015	(r291359)
@@ -87,6 +87,8 @@ load(const char *fname)
 	if ((fp = fopen(fname, "r")) == NULL)
 		err(1, "Cannot open `%s'", fname);
 	while ((line = fgetln(fp, &len)) != NULL) {
+		if (line[0] == '#')
+			continue;
 		char c = line[len];
 		char *ptr;
 		line[len] = '\0';


More information about the svn-src-all mailing list