A few more macro cleanups
authorBruce Momjian <[email protected]>
Wed, 12 Apr 2000 20:33:37 +0000 (20:33 +0000)
committerBruce Momjian <[email protected]>
Wed, 12 Apr 2000 20:33:37 +0000 (20:33 +0000)
src/include/utils/ps_status.h

index b74816586b46bc2006d56cab82b198d1e6f5109b..8bc28e5d63bdb2be8d3e27e7eae3be0bf16d2e13 100644 (file)
@@ -33,10 +33,13 @@ char *ps_status_buffer = NULL
    } while (0)
 
 #define PS_CLEAR_STATUS() \
-   do { if (ps_status_buffer) memset(ps_status_buffer, 0, strlen(ps_status_buffer)); }
+   do { \
+       if (ps_status_buffer) \
+           memset(ps_status_buffer, 0, strlen(ps_status_buffer)); \
+   } while (0)
 
 #define PS_SET_STATUS(status) \
-   { \
+   do { \
        if (ps_status_buffer) \
        { \
            PS_CLEAR_STATUS(); \