diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-06-12 23:27:00 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-06-12 23:27:00 +0000 |
commit | c617db9065afa51100199d9ac4561feee4279291 (patch) | |
tree | e4a90725f73b9fb7ec9970ca495172181acfa873 /libc/pwd_grp/fgetspent.c | |
parent | fd6b9378be20243eaea7da1c2ddb3d68f123d28e (diff) |
Silence warnings, clean things up.
-Erik
Diffstat (limited to 'libc/pwd_grp/fgetspent.c')
-rw-r--r-- | libc/pwd_grp/fgetspent.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/pwd_grp/fgetspent.c b/libc/pwd_grp/fgetspent.c index cf949065f..68053b39e 100644 --- a/libc/pwd_grp/fgetspent.c +++ b/libc/pwd_grp/fgetspent.c @@ -19,9 +19,7 @@ #include <errno.h> #include <stdio.h> -#include <shadow.h> - -#define PWD_BUFFER_SIZE 256 +#include "config.h" int fgetspent_r (FILE *file, struct spwd *spwd, char *buff, size_t buflen, struct spwd **crap) @@ -38,7 +36,7 @@ struct spwd *fgetspent(FILE * file) static char line_buff[PWD_BUFFER_SIZE]; static struct spwd spwd; - if (fgetspent_r(file, &spwd, line_buff, PWD_BUFFER_SIZE, NULL) != -1) { + if (fgetspent_r(file, &spwd, line_buff, sizeof(line_buff), NULL) != -1) { return &spwd; } return NULL; |