Module Name:    src
Committed By:   dholland
Date:           Sat May  9 23:19:34 UTC 2015

Modified Files:
        src/usr.bin/rpcgen: rpc_util.h

Log Message:
Use proper (enough) parentheses in macro expansion.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/rpcgen/rpc_util.h

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_util.h
diff -u src/usr.bin/rpcgen/rpc_util.h:1.9 src/usr.bin/rpcgen/rpc_util.h:1.10
--- src/usr.bin/rpcgen/rpc_util.h:1.9	Sat May  9 21:44:47 2015
+++ src/usr.bin/rpcgen/rpc_util.h	Sat May  9 23:19:34 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: rpc_util.h,v 1.9 2015/05/09 21:44:47 christos Exp $	*/
+/*	$NetBSD: rpc_util.h,v 1.10 2015/05/09 23:19:34 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
@@ -35,8 +35,8 @@
  * rpc_util.h, Useful definitions for the RPC protocol compiler 
  */
 
-#define alloc(size)		(void *)malloc((unsigned)(size))
-#define ALLOC(object)   (object *) malloc(sizeof(object))
+#define alloc(size)		((char *)malloc((size_t)(size)))
+#define ALLOC(object)		((object *)malloc(sizeof(object)))
 
 #define s_print	(void) sprintf
 #define f_print (void) fprintf

Reply via email to