From 2f3d18f2c9f61603677fcb22d59f7157bae89d7e Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Tue, 27 Nov 2018 13:37:31 +0200 Subject: 10020 cmd-crypto: macro expands to multiple statements Reviewed by: Robert Mustacchi Reviewed by: C Fraire Approved by: Richard Lowe --- usr/src/cmd/cmd-crypto/pktool/gencert.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/usr/src/cmd/cmd-crypto/pktool/gencert.c b/usr/src/cmd/cmd-crypto/pktool/gencert.c index 95dd206c44..6f507d2560 100644 --- a/usr/src/cmd/cmd-crypto/pktool/gencert.c +++ b/usr/src/cmd/cmd-crypto/pktool/gencert.c @@ -33,13 +33,14 @@ #include -#define SET_VALUE(f, s) \ - kmfrv = f; \ - if (kmfrv != KMF_OK) { \ - cryptoerror(LOG_STDERR, \ - gettext("Failed to set %s: 0x%02x\n"), \ - s, kmfrv); \ - goto cleanup; \ +#define SET_VALUE(f, s) { \ + kmfrv = f; \ + if (kmfrv != KMF_OK) { \ + cryptoerror(LOG_STDERR, \ + gettext("Failed to set %s: 0x%02x\n"), \ + s, kmfrv); \ + goto cleanup; \ + } \ } static int -- cgit v1.2.3