(map_syscall_name_to_number): ignore # at beginning-of-line

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8043 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-03-15 02:55:51 +00:00
parent 7ed2580db6
commit 0312bc2a02

View File

@@ -113,6 +113,9 @@ map_syscall_name_to_number (const char *str, int *res)
if (f == NULL) if (f == NULL)
return -1; return -1;
while (fgets (buf, sizeof(buf), f) != NULL) { while (fgets (buf, sizeof(buf), f) != NULL) {
if (buf[0] == '#')
continue;
if (strncmp (str, buf, str_len) == 0) { if (strncmp (str, buf, str_len) == 0) {
char *begptr = buf + str_len; char *begptr = buf + str_len;
char *endptr; char *endptr;