Skip to content

Commit 97580f6

Browse files
committed
A few more macro cleanups
1 parent 2a08204 commit 97580f6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/include/utils/ps_status.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ char *ps_status_buffer = NULL
3333
} while (0)
3434

3535
#define PS_CLEAR_STATUS() \
36-
do { if (ps_status_buffer) memset(ps_status_buffer, 0, strlen(ps_status_buffer)); }
36+
do { \
37+
if (ps_status_buffer) \
38+
memset(ps_status_buffer, 0, strlen(ps_status_buffer)); \
39+
} while (0)
3740

3841
#define PS_SET_STATUS(status) \
39-
{ \
42+
do { \
4043
if (ps_status_buffer) \
4144
{ \
4245
PS_CLEAR_STATUS(); \

0 commit comments

Comments
 (0)