diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-02-06 13:30:31 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-02-06 13:30:31 +0000 |
commit | ed4d1c46a27632aa553e7c24c969262bfc2d5c97 (patch) | |
tree | d44f2702502c982570c85130c91c845a83ea8052 /usr.sbin/rpc.ypupdated | |
parent | 8bf216d4a39b268cd561eb5e3a90ba41ef5e733f (diff) | |
download | src-ed4d1c46a27632aa553e7c24c969262bfc2d5c97.tar.gz src-ed4d1c46a27632aa553e7c24c969262bfc2d5c97.zip |
Notes
Diffstat (limited to 'usr.sbin/rpc.ypupdated')
-rw-r--r-- | usr.sbin/rpc.ypupdated/update.c | 4 | ||||
-rw-r--r-- | usr.sbin/rpc.ypupdated/yp_dbdelete.c | 2 | ||||
-rw-r--r-- | usr.sbin/rpc.ypupdated/yp_dbupdate.c | 4 | ||||
-rw-r--r-- | usr.sbin/rpc.ypupdated/ypupdated_extern.h | 8 | ||||
-rw-r--r-- | usr.sbin/rpc.ypupdated/ypupdated_main.c | 2 | ||||
-rw-r--r-- | usr.sbin/rpc.ypupdated/ypupdated_server.c | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/usr.sbin/rpc.ypupdated/update.c b/usr.sbin/rpc.ypupdated/update.c index 376743b3f5d6..6566f46d76ab 100644 --- a/usr.sbin/rpc.ypupdated/update.c +++ b/usr.sbin/rpc.ypupdated/update.c @@ -78,7 +78,7 @@ static char PKFILE[] = "/etc/publickey"; #endif /* YP */ #ifdef YP -static int _openchild __P(( char *, FILE **, FILE ** )); +static int _openchild(char *, FILE **, FILE **); /* * Determine if requester is allowed to update the given map, @@ -247,7 +247,7 @@ basename(path) extern char *malloc(); #endif -static int match __P(( char * , char * )); +static int match(char *, char *); /* * Determine if requester is allowed to update the given map, diff --git a/usr.sbin/rpc.ypupdated/yp_dbdelete.c b/usr.sbin/rpc.ypupdated/yp_dbdelete.c index f66b9741e85e..8a97b197e1e5 100644 --- a/usr.sbin/rpc.ypupdated/yp_dbdelete.c +++ b/usr.sbin/rpc.ypupdated/yp_dbdelete.c @@ -55,7 +55,7 @@ int yp_del_record(dbp,key) int rval; if ((rval = (dbp->del)(dbp,key,0))) { - switch(rval) { + switch (rval) { case 1: return(YP_FALSE); break; diff --git a/usr.sbin/rpc.ypupdated/yp_dbupdate.c b/usr.sbin/rpc.ypupdated/yp_dbupdate.c index 8fb1eba3e070..b94b4b7a372b 100644 --- a/usr.sbin/rpc.ypupdated/yp_dbupdate.c +++ b/usr.sbin/rpc.ypupdated/yp_dbupdate.c @@ -55,7 +55,7 @@ static int yp_domake(map, domain) { int pid; - switch((pid = fork())) { + switch ((pid = fork())) { case 0: execlp(MAP_UPDATE_PATH, MAP_UPDATE, map, domain, (char *)NULL); yp_error("couldn't exec map update process: %s", @@ -104,7 +104,7 @@ int ypmap_update(netname, map, op, keylen, keyval, datlen, datval) data.data = datval; data.size = datlen; - switch(op) { + switch (op) { case YPOP_DELETE: /* delete this entry */ rval = yp_del_record(dbp, &key); if (rval == YP_TRUE) diff --git a/usr.sbin/rpc.ypupdated/ypupdated_extern.h b/usr.sbin/rpc.ypupdated/ypupdated_extern.h index 17e9ee9cdc60..6906f1cea904 100644 --- a/usr.sbin/rpc.ypupdated/ypupdated_extern.h +++ b/usr.sbin/rpc.ypupdated/ypupdated_extern.h @@ -24,7 +24,7 @@ #define MAP_UPDATE_PATH YPLIBDIR MAP_UPDATE extern int children; -extern void ypu_prog_1 __P(( struct svc_req *, register SVCXPRT * )); -extern int localupdate __P(( char *, char *, u_int, u_int, char *, u_int, char * )); -extern int ypmap_update __P(( char *, char *, u_int, u_int, char *, u_int, char * )); -extern int yp_del_record __P(( DB *, DBT * )); +extern void ypu_prog_1(struct svc_req *, register SVCXPRT *); +extern int localupdate(char *, char *, u_int, u_int, char *, u_int, char *); +extern int ypmap_update(char *, char *, u_int, u_int, char *, u_int, char *); +extern int yp_del_record(DB *, DBT *); diff --git a/usr.sbin/rpc.ypupdated/ypupdated_main.c b/usr.sbin/rpc.ypupdated/ypupdated_main.c index 4d3f1260b3a9..85cd7bf474ed 100644 --- a/usr.sbin/rpc.ypupdated/ypupdated_main.c +++ b/usr.sbin/rpc.ypupdated/ypupdated_main.c @@ -197,7 +197,7 @@ main(argc, argv) int ch; while ((ch = getopt(argc, argv, "p:h")) != -1) { - switch(ch) { + switch (ch) { case 'p': yp_dir = optarg; break; diff --git a/usr.sbin/rpc.ypupdated/ypupdated_server.c b/usr.sbin/rpc.ypupdated/ypupdated_server.c index b306268485ac..08f9f56a5fb6 100644 --- a/usr.sbin/rpc.ypupdated/ypupdated_server.c +++ b/usr.sbin/rpc.ypupdated/ypupdated_server.c @@ -136,7 +136,7 @@ unsigned int *ypu_insert_1_svc(args, svcreq) static int res; char *netname; enum auth_stat astat; - + res = 0; astat = yp_checkauth(svcreq); |