summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-12-03 13:50:18 -0800
committerJoshua M. Clulow <josh@sysmgr.org>2018-12-03 13:50:18 -0800
commit8421bc58f13e94e818fb7374158f5450f9c4931d (patch)
treea5411426c129b4615fdb63ea7724742ea4c98295
parent7d1eae8c55720848a7a807e8b76f4b8c7e339af3 (diff)
downloadillumos-joyent-8421bc58f13e94e818fb7374158f5450f9c4931d.tar.gz
10010 libsmbns: macro expands to multiple statements
Reviewed by: Peter Tribble <peter.tribble@gmail.com> Reviewed by: Alexander Pyhalov <apyhalov@gmail.com> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Approved by: Joshua M. Clulow <josh@sysmgr.org>
-rw-r--r--usr/src/lib/smbsrv/libsmbns/common/smbns_netbios_cache.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/src/lib/smbsrv/libsmbns/common/smbns_netbios_cache.c b/usr/src/lib/smbsrv/libsmbns/common/smbns_netbios_cache.c
index b938851c78..56fdca3455 100644
--- a/usr/src/lib/smbsrv/libsmbns/common/smbns_netbios_cache.c
+++ b/usr/src/lib/smbsrv/libsmbns/common/smbns_netbios_cache.c
@@ -484,8 +484,9 @@ smb_netbios_cache_insrefq(name_queue_t *refq, HT_ITEM *item)
if (IS_LOCAL(name->attributes)) {
if (IS_UNIQUE(name->attributes)) {
refent = smb_netbios_name_dup(name, 1);
- if (refent)
+ if (refent) {
QUEUE_INSERT_TAIL(&refq->head, refent)
+ }
/* next name */
return (B_TRUE);
@@ -493,8 +494,9 @@ smb_netbios_cache_insrefq(name_queue_t *refq, HT_ITEM *item)
} else {
ht_mark_delete(smb_netbios_cache, item);
refent = smb_netbios_name_dup(name, 0);
- if (refent)
+ if (refent) {
QUEUE_INSERT_TAIL(&refq->head, refent)
+ }
/* next name */
return (B_TRUE);
@@ -589,8 +591,9 @@ smb_netbios_cache_delete_locals(name_queue_t *delq)
if (IS_LOCAL(entry->attributes)) {
ht_mark_delete(smb_netbios_cache, item);
delent = smb_netbios_name_dup(entry, 1);
- if (delent)
+ if (delent) {
QUEUE_INSERT_TAIL(&delq->head, delent)
+ }
}
(void) mutex_unlock(&entry->mtx);