summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-12-03 18:21:28 +0000
committerngie <ngie@FreeBSD.org>2016-12-03 18:21:28 +0000
commitd8aec54589c640945cac2a9cd8ed6d435d161d75 (patch)
tree4421056010bb61182663a8f569bc741ad3d00bda /lib/libc/rpc
parente80f279f45f22d79e79fd8f1a5757d35bdeee4e4 (diff)
downloadFreeBSD-src-d8aec54589c640945cac2a9cd8ed6d435d161d75.zip
FreeBSD-src-d8aec54589c640945cac2a9cd8ed6d435d161d75.tar.gz
MFC r288995:
r288995 (by rodrigc): Use proper function prototypes. Eliminates -Wstrict-prototypes warning
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r--lib/libc/rpc/getpublickey.c2
-rw-r--r--lib/libc/rpc/key_call.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/rpc/getpublickey.c b/lib/libc/rpc/getpublickey.c
index 74ed983..4c80685 100644
--- a/lib/libc/rpc/getpublickey.c
+++ b/lib/libc/rpc/getpublickey.c
@@ -56,7 +56,7 @@ __FBSDID("$FreeBSD$");
/*
* Hack to let ypserv/rpc.nisd use AUTH_DES.
*/
-int (*__getpublickey_LOCAL)() = 0;
+int (*__getpublickey_LOCAL)(const char *, char *) = 0;
/*
* Get somebody's public key
diff --git a/lib/libc/rpc/key_call.c b/lib/libc/rpc/key_call.c
index 664ddfd..b9bc77a 100644
--- a/lib/libc/rpc/key_call.c
+++ b/lib/libc/rpc/key_call.c
@@ -81,9 +81,9 @@ __FBSDID("$FreeBSD$");
* implementations of these functions, and to call those in key_call().
*/
-cryptkeyres *(*__key_encryptsession_pk_LOCAL)() = 0;
-cryptkeyres *(*__key_decryptsession_pk_LOCAL)() = 0;
-des_block *(*__key_gendes_LOCAL)() = 0;
+cryptkeyres *(*__key_encryptsession_pk_LOCAL)(uid_t, void *arg) = 0;
+cryptkeyres *(*__key_decryptsession_pk_LOCAL)(uid_t, void *arg) = 0;
+des_block *(*__key_gendes_LOCAL)(uid_t, void *) = 0;
static int key_call( u_long, xdrproc_t, void *, xdrproc_t, void *);
OpenPOWER on IntegriCloud