Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/rpc cast to size_t/socklen_t
details: https://anonhg.NetBSD.org/src/rev/fe15ce967736
branches: trunk
changeset: 572335:fe15ce967736
user: christos <christos%NetBSD.org@localhost>
date: Thu Dec 30 05:07:43 2004 +0000
description:
cast to size_t/socklen_t
diffstat:
lib/libc/rpc/clnt_generic.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 8662be299aeb -r fe15ce967736 lib/libc/rpc/clnt_generic.c
--- a/lib/libc/rpc/clnt_generic.c Thu Dec 30 05:06:33 2004 +0000
+++ b/lib/libc/rpc/clnt_generic.c Thu Dec 30 05:07:43 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clnt_generic.c,v 1.22 2003/09/09 03:56:39 itojun Exp $ */
+/* $NetBSD: clnt_generic.c,v 1.23 2004/12/30 05:07:43 christos Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)clnt_generic.c 1.32 89/03/16 Copyr 1988 Sun Micro";
#else
-__RCSID("$NetBSD: clnt_generic.c,v 1.22 2003/09/09 03:56:39 itojun Exp $");
+__RCSID("$NetBSD: clnt_generic.c,v 1.23 2004/12/30 05:07:43 christos Exp $");
#endif
#endif
@@ -334,9 +334,9 @@
if (!nconf || !cl)
break;
/* XXX fvdl - is this useful? */
- if (strncmp(nconf->nc_protofmly, "inet", 4) == 0)
+ if (strncmp(nconf->nc_protofmly, "inet", (size_t)4) == 0)
setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &one,
- sizeof (one));
+ (socklen_t)sizeof (one));
break;
case NC_TPI_CLTS:
cl = clnt_dg_create(fd, svcaddr, prog, vers, sendsz, recvsz);
Home |
Main Index |
Thread Index |
Old Index