clang-tidy: add most bugprone warnings
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl.cpp
index b9311a07ef2051bfeb6243e071f381aef3f90379..15a699e24f3fd63837edbc6b11dccfa3ac5b1a10 100644 (file)
 #include <string.h>
 #include <unistd.h>
 
-#define COPY_DOMAIN_PACKED(dst, src)                             \
-       do {                                                     \
-               struct lttng_domain _tmp_domain;                 \
-                                                                 \
-               lttng_ctl_copy_lttng_domain(&_tmp_domain, &src); \
-               dst = _tmp_domain;                               \
+#define COPY_DOMAIN_PACKED(dst, src)                               \
+       do {                                                       \
+               struct lttng_domain _tmp_domain;                   \
+                                                                   \
+               lttng_ctl_copy_lttng_domain(&_tmp_domain, &(src)); \
+               (dst) = _tmp_domain;                               \
        } while (0)
 
 /* Socket to session daemon for communication */
This page took 0.02472 seconds and 4 git commands to generate.