diff options
author | Ezra Peisach <epeisach@mit.edu> | 2001-12-07 19:20:17 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2001-12-07 19:20:17 +0000 |
commit | 4ff9e46c8c572d5c7258cf42d79d2f938a16d119 (patch) | |
tree | c6c4a371938ed1eb096744877af97cee4dc5b636 /src/lib/rpc/svc_tcp.c | |
parent | 87cc922ae5c53191328cf8c8a87b08a378882082 (diff) | |
download | krb5-4ff9e46c8c572d5c7258cf42d79d2f938a16d119.zip krb5-4ff9e46c8c572d5c7258cf42d79d2f938a16d119.tar.gz krb5-4ff9e46c8c572d5c7258cf42d79d2f938a16d119.tar.bz2 |
* clnt_raw, clnt_tcp.c, clnt_udp.c: Use a union structure to
ensure argument alignment.
* pmap_clnt.c, pmap_clnt.h (pmap_set): Change port argument to int
to avoid width warnings.
* rpc_callmsg.c (xdr_callmsg): Cast argument to XDR_INLINE to
avoid signed vs. unsigned warning.
* svc.c: Cast assignment to avoid signed warning.
* xdr.c (xdr_u_short, xdr_u_long): cast pointers to long * in
invocation of XDR_PUTLONG.
* xdr_alloc.c (xdralloc_putbytes): Cast argument to DynInsert to
avoid signed/unsigned warning.
* auth_gssapi.c, svc_auth_gssapi, xdr_rec.c: Cast arguments to
avoid alignment warnings.
* svc_tcp.c, xdr_stdio.c: Cast argument to fread/fwrite/read/write.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14054 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/rpc/svc_tcp.c')
-rw-r--r-- | src/lib/rpc/svc_tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/rpc/svc_tcp.c b/src/lib/rpc/svc_tcp.c index 5c7b0e9..2d31f9e 100644 --- a/src/lib/rpc/svc_tcp.c +++ b/src/lib/rpc/svc_tcp.c @@ -341,7 +341,7 @@ readtcp(xprtptr, buf, len) #else } while (readfds != mask); #endif /* def FD_SETSIZE */ - if ((len = read(sock, buf, len)) > 0) { + if ((len = read(sock, buf, (size_t) len)) > 0) { return (len); } fatal_err: @@ -363,7 +363,7 @@ writetcp(xprtptr, buf, len) register int i, cnt; for (cnt = len; cnt > 0; cnt -= i, buf += i) { - if ((i = write(xprt->xp_sock, buf, cnt)) < 0) { + if ((i = write(xprt->xp_sock, buf, (size_t) cnt)) < 0) { ((struct tcp_conn *)(xprt->xp_p1))->strm_stat = XPRT_DIED; return (-1); |