summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-11-27 13:37:31 +0200
committerRichard Lowe <richlowe@richlowe.net>2018-12-05 01:55:54 +0000
commit2f3d18f2c9f61603677fcb22d59f7157bae89d7e (patch)
treea9e10d984de33ff90378cb3611aa932bfe4f6fff
parent4e9ec610a7fdddfb6264b1155d0cc9c1874aecc2 (diff)
downloadillumos-gate-2f3d18f2c9f61603677fcb22d59f7157bae89d7e.tar.gz
10020 cmd-crypto: macro expands to multiple statements
Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: C Fraire <cfraire@me.com> Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r--usr/src/cmd/cmd-crypto/pktool/gencert.c15
1 files 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 <kmfapi.h>
-#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