From: Bruce Momjian Date: Wed, 12 Apr 2000 20:33:37 +0000 (+0000) Subject: A few more macro cleanups X-Git-Tag: REL7_0~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97580f69934d76d9e6ef1c87a0f9704d11c26f54;p=postgresql A few more macro cleanups --- diff --git a/src/include/utils/ps_status.h b/src/include/utils/ps_status.h index b74816586b..8bc28e5d63 100644 --- a/src/include/utils/ps_status.h +++ b/src/include/utils/ps_status.h @@ -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(); \