From c118a256d1244a2a86a1c708682103afc195392e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 3 Aug 1998 18:42:00 +0000 Subject: [PATCH] (INT_FIELD): Use strtoul instead of strtol. (INT_FIELD_MAYBE_NULL): Likewise. --- nss/nss_files/files-parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nss/nss_files/files-parse.c b/nss/nss_files/files-parse.c index 2903c2ba898..627a16cff10 100644 --- a/nss/nss_files/files-parse.c +++ b/nss/nss_files/files-parse.c @@ -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)) \ -- 2.47.2