summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/libc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-26 07:03:59 +0000
committerngie <ngie@FreeBSD.org>2015-11-26 07:03:59 +0000
commit65973d76a00c2eb030c0df2c50cf0d5b34c2e7c7 (patch)
tree3f6e43d18652d5f84dc6e3c701ad89e122df5998 /tools/regression/lib/libc
parent2a404bf3ebc435a8c875319bf2f9ee387673f3c8 (diff)
downloadFreeBSD-src-65973d76a00c2eb030c0df2c50cf0d5b34c2e7c7.zip
FreeBSD-src-65973d76a00c2eb030c0df2c50cf0d5b34c2e7c7.tar.gz
Skip over lines that start with # (comments)
MFC after: 3 days
Diffstat (limited to 'tools/regression/lib/libc')
-rw-r--r--tools/regression/lib/libc/resolv/resolv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/regression/lib/libc/resolv/resolv.c b/tools/regression/lib/libc/resolv/resolv.c
index d481ecf..9392872 100644
--- a/tools/regression/lib/libc/resolv/resolv.c
+++ b/tools/regression/lib/libc/resolv/resolv.c
@@ -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';
OpenPOWER on IntegriCloud