From f4baf06134d46512fe36bcc1f63941bd928450e7 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Thu, 25 Feb 2016 12:55:42 +0100 Subject: [PATCH 3/5] Add parameters to local prototypes to fix compiler warnings and avoid portability issues about wrong compiler assumptions. Signed-off-by: Thorsten Kukuk --- src/svc_auth_des.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/svc_auth_des.c b/src/svc_auth_des.c index 5bc264c..2e90146 100644 --- a/src/svc_auth_des.c +++ b/src/svc_auth_des.c @@ -86,13 +86,13 @@ 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_ref(/*short sid*/); /* note that sid was ref'd */ +static short cache_spot(des_block *key, char *name, struct timeval *timestamp); /* 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 *cred); /* invalidate entry in cache */ /* - * cache statistics + * cache statistics */ static struct { u_long ncachehits; /* times cache hit, and is not replay */ -- 1.8.5.6