diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1998-01-19 23:13:38 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1998-01-19 23:13:38 +0000 |
commit | e4a0e42ba842fcb8536d39ed633371226a684472 (patch) | |
tree | 0dbb073ccf213c915d49de4ef141e79a6c8b3eb8 /libexec/rpc.rwalld | |
parent | e2e26133df352c58e324e249db5c8c267163917d (diff) |
Make these programs compile and work correctly now that /usr/include/rpcsvc
has been ANSI-fied.
Pointed out by: bde
Notes
Notes:
svn path=/head/; revision=32629
Diffstat (limited to 'libexec/rpc.rwalld')
-rw-r--r-- | libexec/rpc.rwalld/rwalld.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/libexec/rpc.rwalld/rwalld.c b/libexec/rpc.rwalld/rwalld.c index ec3087082837..f94f4a6148b6 100644 --- a/libexec/rpc.rwalld/rwalld.c +++ b/libexec/rpc.rwalld/rwalld.c @@ -29,7 +29,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: rwalld.c,v 1.6 1997/12/02 12:20:17 charnier Exp $"; #endif /* not lint */ #include <err.h> @@ -152,9 +152,12 @@ void killkids() ; } -void *wallproc_wall_1(s) - char **s; +void *wallproc_wall_1_svc(s, rqstp) + wrapstring *s; + struct svc_req *rqstp; { + static void *dummy = NULL; + /* fork, popen wall with special option, and send the message */ if (fork() == 0) { FILE *pfp; @@ -166,7 +169,7 @@ void *wallproc_wall_1(s) exit(0); } } - return(NULL); + return(&dummy); } void @@ -189,7 +192,7 @@ wallprog_1(rqstp, transp) case WALLPROC_WALL: xdr_argument = xdr_wrapstring; xdr_result = xdr_void; - local = (char *(*)()) wallproc_wall_1; + local = (char *(*)()) wallproc_wall_1_svc; break; default: @@ -197,7 +200,7 @@ wallprog_1(rqstp, transp) goto leave; } bzero((char *)&argument, sizeof(argument)); - if (!svc_getargs(transp, xdr_argument, &argument)) { + if (!svc_getargs(transp, xdr_argument, (caddr_t)&argument)) { svcerr_decode(transp); goto leave; } @@ -205,7 +208,7 @@ wallprog_1(rqstp, transp) if (result != NULL && !svc_sendreply(transp, xdr_result, result)) { svcerr_systemerr(transp); } - if (!svc_freeargs(transp, xdr_argument, &argument)) { + if (!svc_freeargs(transp, xdr_argument, (caddr_t)&argument)) { syslog(LOG_ERR, "unable to free arguments"); exit(1); } |