diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2015-10-07 19:55:58 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2015-10-07 19:55:58 +0000 |
commit | 7d1573f7e98b3fc24bccefb76112063e0562ce07 (patch) | |
tree | b82b03c0bf4f7f6395e7383f3dd89c555c4da592 /lib/libc | |
parent | 923a85693e40a7db7ed3eeceedfcfebb993bd639 (diff) | |
download | FreeBSD-src-7d1573f7e98b3fc24bccefb76112063e0562ce07.zip FreeBSD-src-7d1573f7e98b3fc24bccefb76112063e0562ce07.tar.gz |
Use proper function prototypes.
Eliminates -Wstrict-prototypes warning
Diffstat (limited to 'lib/libc')
-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 *); |