summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-12-03 12:02:14 +0000
committerharti <harti@FreeBSD.org>2004-12-03 12:02:14 +0000
commit2156fca38ee7004b1ed21d28dcdbdbb4e3f82048 (patch)
treebee604cbfa383ff600447e709fd86e62b28f5135 /usr.bin
parent41fdfcd45f1625cf137b07e507748affb1adc408 (diff)
downloadFreeBSD-src-2156fca38ee7004b1ed21d28dcdbdbb4e3f82048.zip
FreeBSD-src-2156fca38ee7004b1ed21d28dcdbdbb4e3f82048.tar.gz
Put macro arguments in paranthesis.
Submitted by: johan
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 190b2aa..b4bf449 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 3f948ed..3b7e1c3 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
OpenPOWER on IntegriCloud