diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2014-01-23 11:19:55 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2014-01-23 11:27:44 -0500 |
commit | db2faef196db32f1be46760b17b063a8bafacae4 (patch) | |
tree | 50c74bc2b7ec6e80524565635db17e61f01d4ffd | |
parent | e63e2b5b89f338befc538c236e8530898fb74993 (diff) | |
download | ti-rpc-db2faef196db32f1be46760b17b063a8bafacae4.tar.gz |
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 <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | src/auth_gss.c | 24 |
1 files changed, 12 insertions, 12 deletions
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 <netinet/in.h> #include <gssapi/gssapi.h> -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; |