diff options
Diffstat (limited to 'shadow')
-rw-r--r-- | shadow/fgetspent_r.c | 3 | ||||
-rw-r--r-- | shadow/sgetspent_r.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/shadow/fgetspent_r.c b/shadow/fgetspent_r.c index fafa89a..cb14a23 100644 --- a/shadow/fgetspent_r.c +++ b/shadow/fgetspent_r.c @@ -60,8 +60,7 @@ __fgetspent_r (FILE *stream, struct spwd *resbuf, char *buffer, size_t buflen, } while (*p == '\0' || *p == '#' || /* Ignore empty and comment lines. */ /* Parse the line. If it is invalid, loop to get the next line of the file to parse. */ - ! parse_line (buffer, (void *) resbuf, NULL, 0, - __errno_location ())); + ! parse_line (buffer, (void *) resbuf, NULL, 0, &errno)); *result = resbuf; return 0; diff --git a/shadow/sgetspent_r.c b/shadow/sgetspent_r.c index f3e322a..fd34313 100644 --- a/shadow/sgetspent_r.c +++ b/shadow/sgetspent_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -92,7 +92,7 @@ __sgetspent_r (const char *string, struct spwd *resbuf, char *buffer, size_t buflen, struct spwd **result) { int parse_result = parse_line (strncpy (buffer, string, buflen), - resbuf, NULL, 0, __errno_location ()); + resbuf, NULL, 0, &errno); *result = parse_result > 0 ? resbuf : NULL; return *result == NULL ? errno : 0; |