]> granicus.if.org Git - libtirpc/commitdiff
Removed a number warnings by adding a number of type casts.
authorSteve Dickson <steved@redhat.com>
Wed, 28 Jan 2009 14:56:10 +0000 (09:56 -0500)
committerSteve Dickson <steved@redhat.com>
Wed, 28 Jan 2009 14:56:10 +0000 (09:56 -0500)
Signed-off-by: Steve Dickson <steved@redhat.com>
src/auth_gss.c
src/authgss_prot.c
src/svc_auth_gss.c

index 8f7919cd70ed725442d4225af211b7c9b8645a3a..bf6cba69a16af3e7f09bdc4ad83b07eab5913ce5 100644 (file)
@@ -221,7 +221,7 @@ authgss_create_default(CLIENT *clnt, char *service, struct rpc_gss_sec *sec)
        sname.length = strlen(service);
 
        maj_stat = gss_import_name(&min_stat, &sname,
-               GSS_C_NT_HOSTBASED_SERVICE,
+               (gss_OID)GSS_C_NT_HOSTBASED_SERVICE,
                &name);
 
        if (maj_stat != GSS_S_COMPLETE) {
index 97724f16430105ac47929447b913fc2b5e193731..be0d1a6501fc0a8c87087e244f1d407bdb2386b0 100644 (file)
@@ -176,10 +176,11 @@ xdr_rpc_gss_unwrap_data(XDR *xdrs, xdrproc_t xdr_func, caddr_t xdr_ptr,
        XDR             tmpxdrs;
        gss_buffer_desc databuf, wrapbuf;
        OM_uint32       maj_stat, min_stat;
-       u_int           seq_num, conf_state, qop_state;
+       u_int           seq_num, qop_state;
+       int                     conf_state;
        bool_t          xdr_stat;
 
-       if (xdr_func == xdr_void || xdr_ptr == NULL)
+       if (xdr_func == (xdrproc_t)xdr_void || xdr_ptr == NULL)
                return (TRUE);
 
        memset(&databuf, 0, sizeof(databuf));
index 346e5b1080e34366a6ebcb9877ca47b941e00117..9e9ff814f2472b7789c344dc1808cb81d759629a 100644 (file)
@@ -190,7 +190,7 @@ svcauth_gss_accept_sec_context(struct svc_req *rqst,
        /* Deserialize arguments. */
        memset(&recv_tok, 0, sizeof(recv_tok));
 
-       if (!svc_getargs(rqst->rq_xprt, xdr_rpc_gss_init_args,
+       if (!svc_getargs(rqst->rq_xprt, (xdrproc_t)xdr_rpc_gss_init_args,
                         (caddr_t)&recv_tok))
                return (FALSE);
 
@@ -469,8 +469,8 @@ _svcauth_gss(struct svc_req *rqst, struct rpc_msg *msg, bool_t *no_dispatch)
 
                *no_dispatch = TRUE;
 
-               call_stat = svc_sendreply(rqst->rq_xprt, xdr_rpc_gss_init_res,
-                                         (caddr_t)&gr);
+               call_stat = svc_sendreply(rqst->rq_xprt, 
+                       (xdrproc_t)xdr_rpc_gss_init_res, (caddr_t)&gr);
 
                if (!call_stat)
                        return (AUTH_FAILED);