Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/rpcgen Remove pointless casts.
details: https://anonhg.NetBSD.org/src/rev/2aa596881025
branches: trunk
changeset: 808236:2aa596881025
user: dholland <dholland%NetBSD.org@localhost>
date: Sat May 09 23:29:51 2015 +0000
description:
Remove pointless casts.
diffstat:
usr.bin/rpcgen/rpc_parse.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r a1a9b0f5dc85 -r 2aa596881025 usr.bin/rpcgen/rpc_parse.c
--- a/usr.bin/rpcgen/rpc_parse.c Sat May 09 23:28:43 2015 +0000
+++ b/usr.bin/rpcgen/rpc_parse.c Sat May 09 23:29:51 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpc_parse.c,v 1.20 2015/05/09 23:28:43 dholland Exp $ */
+/* $NetBSD: rpc_parse.c,v 1.21 2015/05/09 23:29:51 dholland Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)rpc_parse.c 1.8 89/02/22 (C) 1987 SMI";
#else
-__RCSID("$NetBSD: rpc_parse.c,v 1.20 2015/05/09 23:28:43 dholland Exp $");
+__RCSID("$NetBSD: rpc_parse.c,v 1.21 2015/05/09 23:29:51 dholland Exp $");
#endif
#endif
@@ -484,7 +484,7 @@
sprintf(name, "%s%d", ARGNAME, num); /* default name of
* argument */
- dec->name = (char *) strdup(name);
+ dec->name = strdup(name);
if (streq(dec->type, "void")) {
return;
@@ -498,7 +498,7 @@
}
dec->rel = REL_POINTER;
if (peekscan(TOK_IDENT, &tok)) /* optional name of argument */
- dec->name = (char *) strdup(tok.str);
+ dec->name = strdup(tok.str);
}
if (peekscan(TOK_LANGLE, &tok)) {
if (!streq(dec->type, "string")) {
Home |
Main Index |
Thread Index |
Old Index