diff options
Diffstat (limited to 'nss/nss_files/files-grp.c')
-rw-r--r-- | nss/nss_files/files-grp.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/nss/nss_files/files-grp.c b/nss/nss_files/files-grp.c index 6d528a6df2..580dfbe3eb 100644 --- a/nss/nss_files/files-grp.c +++ b/nss/nss_files/files-grp.c @@ -27,12 +27,10 @@ struct grent_data {}; #define TRAILING_LIST_MEMBER gr_mem #define TRAILING_LIST_SEPARATOR_P(c) ((c) == ',') #include "files-parse.c" -LINE_PARSER -( - STRING_FIELD (result->gr_name, ISCOLON, 0); - STRING_FIELD (result->gr_passwd, ISCOLON, 0); - INT_FIELD (result->gr_gid, ISCOLON, 0, 10,); -) +/* Our parser function is already defined in fgetgrent.c, so use that. + to parse lines from the database file. */ +extern int parse_line (char *line, struct STRUCTURE *result, + void *buffer, int buflen); #include "files-XXX.c" |