diff options
author | ngie <ngie@FreeBSD.org> | 2016-12-03 18:21:28 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-12-03 18:21:28 +0000 |
commit | d8aec54589c640945cac2a9cd8ed6d435d161d75 (patch) | |
tree | 4421056010bb61182663a8f569bc741ad3d00bda /lib | |
parent | e80f279f45f22d79e79fd8f1a5757d35bdeee4e4 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | lib/libc/rpc/getpublickey.c | 2 | ||||
-rw-r--r-- | lib/libc/rpc/key_call.c | 6 |
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 *); |