about summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-01 04:35:11 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-01 04:35:11 +0000
commitb856f875e8b72c48ef9b983b702f614615fc80b3 (patch)
tree01919d8f7a40b528f80d9bafe68aa27cac66b8b6 /sunrpc
parent71d82dbe9e2e3345de641259dbacb8d45b0801a3 (diff)
downloadglibc-b856f875e8b72c48ef9b983b702f614615fc80b3.tar.gz
glibc-b856f875e8b72c48ef9b983b702f614615fc80b3.tar.xz
glibc-b856f875e8b72c48ef9b983b702f614615fc80b3.zip
Update.
	* sunrpc/rpc_cout.c (inline_struct): Add missing braces in
	generated expressions.
	Patch by Darren McClelland <dmcclell@zetec.com>.
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/rpc_cout.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sunrpc/rpc_cout.c b/sunrpc/rpc_cout.c
index a8471cacc9..808a5053cd 100644
--- a/sunrpc/rpc_cout.c
+++ b/sunrpc/rpc_cout.c
@@ -524,11 +524,11 @@ inline_struct (definition *def, int flag)
 		    f_print (fout, "buf = XDR_INLINE (xdrs, %d * BYTES_PER_XDR_UNIT);", size);
 		  else if (size == 0)
 		    f_print (fout,
-			     "buf = XDR_INLINE (xdrs, %s * BYTES_PER_XDR_UNIT);",
+			     "buf = XDR_INLINE (xdrs, (%s) * BYTES_PER_XDR_UNIT);",
 			     sizestr);
 		  else
 		    f_print (fout,
-			     "buf = XDR_INLINE(xdrs, (%d + (%s)) * BYTES_PER_XDR_UNIT);",
+			     "buf = XDR_INLINE (xdrs, (%d + (%s)) * BYTES_PER_XDR_UNIT);",
 			     size, sizestr);
 		  f_print (fout, "\n");
 		  tabify (fout, indent + 1);
@@ -573,15 +573,15 @@ inline_struct (definition *def, int flag)
 	  /* were already looking at a xdr_inlineable structure */
 	  if (sizestr == NULL)
 	    f_print (fout,
-		     "\t\tbuf = XDR_INLINE(xdrs,%d * BYTES_PER_XDR_UNIT);",
+		     "\t\tbuf = XDR_INLINE (xdrs, %d * BYTES_PER_XDR_UNIT);",
 		     size);
 	  else if (size == 0)
 	    f_print (fout,
-		     "\t\tbuf = XDR_INLINE(xdrs,%s * BYTES_PER_XDR_UNIT);",
+		     "\t\tbuf = XDR_INLINE (xdrs, (%s) * BYTES_PER_XDR_UNIT);",
 		     sizestr);
 	  else
 	    f_print (fout,
-		     "\t\tbuf = XDR_INLINE(xdrs,(%d + %s)* BYTES_PER_XDR_UNIT);",
+		     "\t\tbuf = XDR_INLINE (xdrs, (%d + %s)* BYTES_PER_XDR_UNIT);",
 		     size, sizestr);
 	  f_print (fout, "\n\t\tif (buf == NULL) {\n");
 	  psav = cur;