summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-11-22 11:56:38 +0200
committerRichard Lowe <richlowe@richlowe.net>2018-12-05 01:59:03 +0000
commitfa79a855d371dfcb29461ad6ebaf48a458bf9f14 (patch)
treed543994a799d5427f7761083efb2937ea3d2ecfa /usr
parent2f3d18f2c9f61603677fcb22d59f7157bae89d7e (diff)
downloadillumos-gate-fa79a855d371dfcb29461ad6ebaf48a458bf9f14.tar.gz
10017 libilb: macro expands to multiple statements
Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr')
-rw-r--r--usr/src/lib/libilb/common/ilb_sg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/lib/libilb/common/ilb_sg.c b/usr/src/lib/libilb/common/ilb_sg.c
index 62990f0f09..bd59b9dc7f 100644
--- a/usr/src/lib/libilb/common/ilb_sg.c
+++ b/usr/src/lib/libilb/common/ilb_sg.c
@@ -423,11 +423,12 @@ i_ilb_fillin_srvdata(ilb_handle_t h, ilb_server_data_t *srv, const char *sgname,
sgs = &sg_info->sg_servers[0];
- if (cmd == ILBD_SRV_ID2ADDR)
+ if (cmd == ILBD_SRV_ID2ADDR) {
(void) strlcpy(sgs->sgs_srvID, srv->sd_srvID,
sizeof (sgs->sgs_srvID));
- else
+ } else {
IP_COPY_CLI_2_IMPL(&srv->sd_addr, &sgs->sgs_addr);
+ }
rc = i_ilb_do_comm(h, ic, ic_sz, rbuf, &rbufsz);
if (rc != ILB_STATUS_OK)