summaryrefslogtreecommitdiffstats
path: root/lib/librpcsvc/rnusers.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-02-26 20:32:11 +0000
committered <ed@FreeBSD.org>2009-02-26 20:32:11 +0000
commitffab68620f121460586af38654ee5be9efaa11f3 (patch)
tree2b79d2949beb316192954f2c483d67d0b2383b8a /lib/librpcsvc/rnusers.c
parentab39654e319d3fec6d8c5e3907ffc143827025b6 (diff)
downloadFreeBSD-src-ffab68620f121460586af38654ee5be9efaa11f3.zip
FreeBSD-src-ffab68620f121460586af38654ee5be9efaa11f3.tar.gz
Use ANSI function declarations in librpcsvc.
When compiling librpcsvc with LLVM, we get a compiler error, because hexval() uses an ANSI prototype, but a K&R declaration. I could have just changed hexval(), but I'd rather keep this consistent. It's not that much code. Submitted by: Pawel Worach <pawel worach gmail com>
Diffstat (limited to 'lib/librpcsvc/rnusers.c')
-rw-r--r--lib/librpcsvc/rnusers.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/librpcsvc/rnusers.c b/lib/librpcsvc/rnusers.c
index 49cab07..2a68de5 100644
--- a/lib/librpcsvc/rnusers.c
+++ b/lib/librpcsvc/rnusers.c
@@ -47,9 +47,7 @@ static char sccsid[] = "@(#)rnusers.c 1.2 91/03/11 TIRPC 1.0; from 1.7 89/03/24
#include <rpcsvc/rnusers.h>
int
-rusers(host, up)
- char *host;
- struct utmpidlearr *up;
+rusers(char *host, utmpidlearr *up)
{
return (callrpc(host, RUSERSPROG, RUSERSVERS_IDLE, RUSERSPROC_NAMES,
(xdrproc_t)xdr_void, (char *) NULL,
@@ -57,8 +55,7 @@ rusers(host, up)
}
int
-rnusers(host)
- char *host;
+rnusers(char *host)
{
int nusers;
OpenPOWER on IntegriCloud