aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2004-12-03 12:02:14 +0000
committerHartmut Brandt <harti@FreeBSD.org>2004-12-03 12:02:14 +0000
commit2d3d282892375ef6ec3365edb371b93a70483277 (patch)
treebee604cbfa383ff600447e709fd86e62b28f5135 /usr.bin
parentb6899024a6019a3f36d24dcab6b5d9956fc8dc13 (diff)
downloadsrc-2d3d282892375ef6ec3365edb371b93a70483277.tar.gz
src-2d3d282892375ef6ec3365edb371b93a70483277.zip
Put macro arguments in paranthesis.
Submitted by: johan
Notes
Notes: svn path=/head/; revision=138342
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/buf.c2
-rw-r--r--usr.bin/make/buf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/buf.c b/usr.bin/make/buf.c
index 190b2aa50eef..b4bf44918118 100644
--- a/usr.bin/make/buf.c
+++ b/usr.bin/make/buf.c
@@ -63,7 +63,7 @@ __FBSDID("$FreeBSD$");
* buffer in case it holds a string.
*/
#define BufExpand(bp, nb) do { \
- if (bp->left < (nb) + 1) { \
+ if ((bp)->left < (nb) + 1) { \
int newSize = (bp)->size + max((nb) + 1, BUF_ADD_INC); \
Byte *newBuf = erealloc((bp)->buffer, newSize); \
\
diff --git a/usr.bin/make/buf.h b/usr.bin/make/buf.h
index 3f948ed25375..3b7e1c300b84 100644
--- a/usr.bin/make/buf.h
+++ b/usr.bin/make/buf.h
@@ -62,7 +62,7 @@ typedef struct Buffer {
/* Buf_AddByte adds a single byte to a buffer. */
#define Buf_AddByte(bp, byte) \
- (void)(--(bp)->left <= 0 ? Buf_OvAddByte(bp, byte), 1 : \
+ (void)(--(bp)->left <= 0 ? Buf_OvAddByte((bp), (byte)), 1 : \
(*(bp)->inPtr++ = (byte), *(bp)->inPtr = 0), 1)
#define BUF_ERROR 256