diff options
Diffstat (limited to 'libexec/revnetgroup/parse_netgroup.c')
-rw-r--r-- | libexec/revnetgroup/parse_netgroup.c | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/libexec/revnetgroup/parse_netgroup.c b/libexec/revnetgroup/parse_netgroup.c index 6b795c6..13301df 100644 --- a/libexec/revnetgroup/parse_netgroup.c +++ b/libexec/revnetgroup/parse_netgroup.c @@ -84,10 +84,8 @@ static struct { (struct netgrp *)0, (char *)0, }; -static int parse_netgrp(); -static struct linelist *read_for_group(); -void __setnetgrent(), __endnetgrent(); -int __getnetgrent(); +static int parse_netgrp(char *group); +static struct linelist *read_for_group(char *group); extern struct group_entry *gtable[]; /* @@ -97,8 +95,7 @@ extern struct group_entry *gtable[]; * most of the work. */ void -__setnetgrent(group) - char *group; +__setnetgrent(char *group) { /* Sanity check */ @@ -123,8 +120,7 @@ __setnetgrent(group) * Get the next netgroup off the list. */ int -__getnetgrent(hostp, userp, domp) - char **hostp, **userp, **domp; +__getnetgrent(char **hostp, char **userp, char **domp) { if (nextgrp) { *hostp = nextgrp->ng_str[NG_HOST]; @@ -140,10 +136,10 @@ __getnetgrent(hostp, userp, domp) * __endnetgrent() - cleanup */ void -__endnetgrent() +__endnetgrent(void) { - register struct linelist *lp, *olp; - register struct netgrp *gp, *ogp; + struct linelist *lp, *olp; + struct netgrp *gp, *ogp; lp = linehead; while (lp) { @@ -177,13 +173,12 @@ __endnetgrent() * Parse the netgroup file setting up the linked lists. */ static int -parse_netgrp(group) - char *group; +parse_netgrp(char *group) { - register char *spos, *epos; - register int len, strpos; + char *spos, *epos; + int len, strpos; #ifdef DEBUG - register int fields; + int fields; #endif char *pos, *gpos; struct netgrp *grp; @@ -288,11 +283,10 @@ parse_netgrp(group) * is found. Return 1 if eof is encountered. */ static struct linelist * -read_for_group(group) - char *group; +read_for_group(char *group) { - register char *pos, *spos, *linep = NULL, *olinep = NULL; - register int len, olen; + char *pos, *spos, *linep = NULL, *olinep = NULL; + int len, olen; int cont; struct linelist *lp; char line[LINSIZ + 1]; |