Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/rpc Remove unnecessary cast to caddr_t.
details: https://anonhg.NetBSD.org/src/rev/16f07020fc5c
branches: trunk
changeset: 772410:16f07020fc5c
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Jan 02 21:29:55 2012 +0000
description:
Remove unnecessary cast to caddr_t.
diffstat:
lib/libc/rpc/xdr_sizeof.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 16096d6d4314 -r 16f07020fc5c lib/libc/rpc/xdr_sizeof.c
--- a/lib/libc/rpc/xdr_sizeof.c Mon Jan 02 21:29:29 2012 +0000
+++ b/lib/libc/rpc/xdr_sizeof.c Mon Jan 02 21:29:55 2012 +0000
@@ -39,7 +39,7 @@
#if 0
__FBSDID("$FreeBSD: src/lib/libc/xdr/xdr_sizeof.c,v 1.5.38.1 2010/12/21 17:10:29 kensmith Exp $");
#else
-__RCSID("$NetBSD: xdr_sizeof.c,v 1.2 2011/07/04 11:01:40 mrg Exp $");
+__RCSID("$NetBSD: xdr_sizeof.c,v 1.3 2012/01/02 21:29:55 dholland Exp $");
#endif
#include "namespace.h"
@@ -117,7 +117,7 @@
/* Free the earlier space and allocate new area */
if (xdrs->x_private)
free(xdrs->x_private);
- if ((xdrs->x_private = (caddr_t) malloc(len)) == NULL) {
+ if ((xdrs->x_private = malloc(len)) == NULL) {
xdrs->x_base = 0;
return (NULL);
}
Home |
Main Index |
Thread Index |
Old Index