From: Chuck Lever Date: Thu, 23 Jan 2014 16:19:55 +0000 (-0500) Subject: Clean up forward declarations in src/auth_gss.c X-Git-Tag: libtirpc-0-2-5-rc1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db2faef196db32f1be46760b17b063a8bafacae4;p=libtirpc Clean up forward declarations in src/auth_gss.c Address some sparse complaints Bring the forward declarations for the auth_ops defined in auth_gss.c up to recent C standards. These should match the function prototypes used to declare the auth_ops structure. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- diff --git a/src/auth_gss.c b/src/auth_gss.c index 703bc3f..fd6191b 100644 --- a/src/auth_gss.c +++ b/src/auth_gss.c @@ -49,14 +49,14 @@ #include #include -static void authgss_nextverf(); -static bool_t authgss_marshal(); -static bool_t authgss_refresh(); -static bool_t authgss_validate(); -static void authgss_destroy(); -static void authgss_destroy_context(); -static bool_t authgss_wrap(); -static bool_t authgss_unwrap(); +static void authgss_nextverf(AUTH *); +static bool_t authgss_marshal(AUTH *, XDR *); +static bool_t authgss_refresh(AUTH *, void *); +static bool_t authgss_validate(AUTH *, struct opaque_auth *); +static void authgss_destroy(AUTH *); +static void authgss_destroy_context(AUTH *); +static bool_t authgss_wrap(AUTH *, XDR *, xdrproc_t, caddr_t); +static bool_t authgss_unwrap(AUTH *, XDR *, xdrproc_t, caddr_t); /* @@ -198,7 +198,7 @@ authgss_create(CLIENT *clnt, gss_name_t name, struct rpc_gss_sec *sec) save_auth = clnt->cl_auth; clnt->cl_auth = auth; - if (!authgss_refresh(auth)) + if (!authgss_refresh(auth, NULL)) auth = NULL; else auth_get(auth); /* Reference for caller */ @@ -418,7 +418,7 @@ authgss_validate(AUTH *auth, struct opaque_auth *verf) } static bool_t -authgss_refresh(AUTH *auth) +authgss_refresh(AUTH *auth, void *dummy) { struct rpc_gss_data *gd; struct rpc_gss_init_res gr; @@ -639,7 +639,7 @@ authgss_destroy(AUTH *auth) free(auth); } -bool_t +static bool_t authgss_wrap(AUTH *auth, XDR *xdrs, xdrproc_t xdr_func, caddr_t xdr_ptr) { struct rpc_gss_data *gd; @@ -656,7 +656,7 @@ authgss_wrap(AUTH *auth, XDR *xdrs, xdrproc_t xdr_func, caddr_t xdr_ptr) gd->sec.svc, gd->gc.gc_seq)); } -bool_t +static bool_t authgss_unwrap(AUTH *auth, XDR *xdrs, xdrproc_t xdr_func, caddr_t xdr_ptr) { struct rpc_gss_data *gd;