summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/svc_auth_des.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-12-03 17:10:37 +0000
committerngie <ngie@FreeBSD.org>2016-12-03 17:10:37 +0000
commitbf027d30f65946c403cff801d75f469e39fa3e48 (patch)
treeadb91d1373bf2713966c46ecfadaa47a2108bd57 /lib/libc/rpc/svc_auth_des.c
parent7e1697c9902f5cbbfaf68ccd4c9423153c76f3b3 (diff)
downloadFreeBSD-src-bf027d30f65946c403cff801d75f469e39fa3e48.zip
FreeBSD-src-bf027d30f65946c403cff801d75f469e39fa3e48.tar.gz
MFC r287350:
r287350 (by rodrigc): Use ANSI C prototypes. Eliminates gcc 4.9 warnings.
Diffstat (limited to 'lib/libc/rpc/svc_auth_des.c')
-rw-r--r--lib/libc/rpc/svc_auth_des.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/rpc/svc_auth_des.c b/lib/libc/rpc/svc_auth_des.c
index d6fb6af..61dffcf 100644
--- a/lib/libc/rpc/svc_auth_des.c
+++ b/lib/libc/rpc/svc_auth_des.c
@@ -90,11 +90,11 @@ struct cache_entry {
static struct cache_entry *authdes_cache/* [AUTHDES_CACHESZ] */;
static short *authdes_lru/* [AUTHDES_CACHESZ] */;
-static void cache_init(); /* initialize the cache */
-static short cache_spot(); /* find an entry in the cache */
+static void cache_init(void); /* initialize the cache */
+static short cache_spot(des_block *, char *, struct timeval *); /* find an entry in the cache */
static void cache_ref(/*short sid*/); /* note that sid was ref'd */
-static void invalidate(); /* invalidate entry in cache */
+static void invalidate(char *); /* invalidate entry in cache */
/*
* cache statistics
@@ -355,7 +355,7 @@ _svcauth_des(rqst, msg)
* Initialize the cache
*/
static void
-cache_init()
+cache_init(void)
{
int i;
@@ -378,7 +378,7 @@ cache_init()
* Find the lru victim
*/
static short
-cache_victim()
+cache_victim(void)
{
return (authdes_lru[AUTHDES_CACHESZ-1]);
}
OpenPOWER on IntegriCloud