summaryrefslogtreecommitdiffstats
path: root/libexec/revnetgroup/parse_netgroup.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-07 23:57:01 +0000
committerimp <imp@FreeBSD.org>2002-02-07 23:57:01 +0000
commitc963f1d00273d3cea8a89288017919b46b7374e3 (patch)
treeec514bcba5b68b3cc1a0c1e6821e5f92d0c6bf2d /libexec/revnetgroup/parse_netgroup.c
parent4289b50433ef09f1bfa03246de59392ffe6bb601 (diff)
downloadFreeBSD-src-c963f1d00273d3cea8a89288017919b46b7374e3.zip
FreeBSD-src-c963f1d00273d3cea8a89288017919b46b7374e3.tar.gz
o __P removal
o register removal o use new style prototypes and function definitions
Diffstat (limited to 'libexec/revnetgroup/parse_netgroup.c')
-rw-r--r--libexec/revnetgroup/parse_netgroup.c34
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];
OpenPOWER on IntegriCloud