Clean-up: kernel-ctl: rename local variables in LTTNG_IOCTL_{,NO_}CHECK
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.c
index 592e1a2f4146d4b118655eb59680267a0d1686be..ff85b2c9b57420aeaff42adffe463309e04a5ec5 100644 (file)
 #include "kernel-ctl.h"
 #include "kernel-ioctl.h"
 
-#define LTTNG_IOCTL_CHECK(fildes, request, ...) ({     \
-       int ret = ioctl(fildes, request, ##__VA_ARGS__);\
-       assert(ret <= 0);                               \
-       !ret ? 0 : -errno;                              \
-})
-
-#define LTTNG_IOCTL_NO_CHECK(fildes, request, ...) ({  \
-       int ret = ioctl(fildes, request, ##__VA_ARGS__);\
-       ret >= 0 ? ret : -errno;                        \
-})
+#define LTTNG_IOCTL_CHECK(fildes, request, ...)                         \
+       ({                                                              \
+               int _ioctl_ret = ioctl(fildes, request, ##__VA_ARGS__); \
+               assert(_ioctl_ret <= 0);                                \
+               !_ioctl_ret ? 0 : -errno;                               \
+       })
+
+#define LTTNG_IOCTL_NO_CHECK(fildes, request, ...)                      \
+       ({                                                              \
+               int _ioctl_ret = ioctl(fildes, request, ##__VA_ARGS__); \
+               _ioctl_ret >= 0 ? _ioctl_ret : -errno;                  \
+       })
 
 /*
  * This flag indicates which version of the kernel ABI to use. The old
This page took 0.022826 seconds and 4 git commands to generate.