Module Name:    src
Committed By:   dholland
Date:           Sat May  9 23:29:52 UTC 2015

Modified Files:
        src/usr.bin/rpcgen: rpc_parse.c

Log Message:
Remove pointless casts.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/usr.bin/rpcgen/rpc_parse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/rpcgen/rpc_parse.c
diff -u src/usr.bin/rpcgen/rpc_parse.c:1.20 src/usr.bin/rpcgen/rpc_parse.c:1.21
--- src/usr.bin/rpcgen/rpc_parse.c:1.20	Sat May  9 23:28:43 2015
+++ src/usr.bin/rpcgen/rpc_parse.c	Sat May  9 23:29:51 2015
@@ -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 @@ get_prog_declaration(declaration *dec, d
 		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 @@ get_prog_declaration(declaration *dec, d
 		}
 		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")) {

Reply via email to