- Removed a number warnings
This commit is contained in:
parent
658ceee140
commit
f873e92578
63
libtirpc-0.1.10-warnings.patch
Normal file
63
libtirpc-0.1.10-warnings.patch
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
commit 5bc80ccd81e0c7ef185de34e7f34a7766bce0e27
|
||||||
|
Author: Steve Dickson <steved@redhat.com>
|
||||||
|
Date: Wed Jan 28 09:56:10 2009 -0500
|
||||||
|
|
||||||
|
Removed a number warnings by adding a number of type casts.
|
||||||
|
|
||||||
|
Signed-off-by: Steve Dickson <steved@redhat.com>
|
||||||
|
|
||||||
|
diff --git a/src/auth_gss.c b/src/auth_gss.c
|
||||||
|
index 8f7919c..bf6cba6 100644
|
||||||
|
--- a/src/auth_gss.c
|
||||||
|
+++ b/src/auth_gss.c
|
||||||
|
@@ -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) {
|
||||||
|
diff --git a/src/authgss_prot.c b/src/authgss_prot.c
|
||||||
|
index 97724f1..be0d1a6 100644
|
||||||
|
--- a/src/authgss_prot.c
|
||||||
|
+++ b/src/authgss_prot.c
|
||||||
|
@@ -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));
|
||||||
|
diff --git a/src/svc_auth_gss.c b/src/svc_auth_gss.c
|
||||||
|
index 346e5b1..9e9ff81 100644
|
||||||
|
--- a/src/svc_auth_gss.c
|
||||||
|
+++ b/src/svc_auth_gss.c
|
||||||
|
@@ -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);
|
@ -34,6 +34,7 @@ Patch01: libtirpc-0.1.10-dg-unlock.patch
|
|||||||
Patch02: libtirpc-0.1.10-errmess-unlock.patch
|
Patch02: libtirpc-0.1.10-errmess-unlock.patch
|
||||||
Patch03: libtirpc-0.1.10-C++declares.patch
|
Patch03: libtirpc-0.1.10-C++declares.patch
|
||||||
Patch04: libtirpc-0.1.10-svcreq-compat.patch
|
Patch04: libtirpc-0.1.10-svcreq-compat.patch
|
||||||
|
Patch05: libtirpc-0.1.10-warnings.patch
|
||||||
|
|
||||||
Patch100: libtirpc-0.1.7-compile.patch
|
Patch100: libtirpc-0.1.7-compile.patch
|
||||||
|
|
||||||
@ -48,6 +49,7 @@ developing programs which use the tirpc library.
|
|||||||
%patch02 -p1
|
%patch02 -p1
|
||||||
%patch03 -p1
|
%patch03 -p1
|
||||||
%patch04 -p1
|
%patch04 -p1
|
||||||
|
%patch05 -p1
|
||||||
|
|
||||||
%patch100 -p1
|
%patch100 -p1
|
||||||
|
|
||||||
@ -147,8 +149,9 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jan 28 2009 Steve Dickson <steved@redhat.com> 0.1.10-3
|
* Wed Jan 28 2009 Steve Dickson <steved@redhat.com> 0.1.10-3
|
||||||
- backwards compatibility: fix order of fields in TI-RPC's svc_req
|
- backwards compatibility: fix order of fields in TI-RPC's
|
||||||
(bz 481388)
|
svc_req (bz 481388)
|
||||||
|
- Removed a number warnings.
|
||||||
|
|
||||||
* Thu Jan 22 2009 Steve Dickson <steved@redhat.com> 0.1.10-2
|
* Thu Jan 22 2009 Steve Dickson <steved@redhat.com> 0.1.10-2
|
||||||
- Header file fixes for C++
|
- Header file fixes for C++
|
||||||
|
Loading…
Reference in New Issue
Block a user