Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* sunrpc/rpc_cout.c (inline_struct): Add missing braces in
	generated expressions.
	Patch by Darren McClelland <dmcclell@zetec.com>.
  • Loading branch information
Ulrich Drepper committed Jul 1, 2000
1 parent 71d82db commit b856f87
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
2000-06-30 Ulrich Drepper <drepper@redhat.com>

* sunrpc/rpc_cout.c (inline_struct): Add missing braces in
generated expressions.
Patch by Darren McClelland <dmcclell@zetec.com>.

* timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
since zic uses setlocale and gettext but we cannot make it use the
new locale data since zic calls a shell which might not use the
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions sunrpc/rpc_cout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b856f87

Please sign in to comment.