]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(INT_FIELD): Use strtoul instead of strtol.
authorUlrich Drepper <drepper@redhat.com>
Mon, 3 Aug 1998 18:42:00 +0000 (18:42 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 3 Aug 1998 18:42:00 +0000 (18:42 +0000)
(INT_FIELD_MAYBE_NULL): Likewise.

nss/nss_files/files-parse.c

index 2903c2ba89887e8c284830e649586c7061550eb8..627a16cff106d1e292aab05d0d8413d2964b0ef7 100644 (file)
@@ -109,7 +109,7 @@ parse_line (char *line, struct STRUCTURE *result,                         \
 # define INT_FIELD(variable, terminator_p, swallow, base, convert)           \
   {                                                                          \
     char *endp;                                                                      \
-    variable = convert (strtol (line, &endp, base));                         \
+    variable = convert (strtoul (line, &endp, base));                        \
     if (endp == line)                                                        \
       return 0;                                                                      \
     else if (terminator_p (*endp))                                           \
@@ -127,7 +127,7 @@ parse_line (char *line, struct STRUCTURE *result,                         \
     if (*line == '\0')                                                       \
       /* We expect some more input, so don't allow the string to end here. */ \
       return 0;                                                                      \
-    variable = convert (strtol (line, &endp, base));                         \
+    variable = convert (strtoul (line, &endp, base));                        \
     if (endp == line)                                                        \
       variable = default;                                                    \
     if (terminator_p (*endp))                                                \