Add lttng_ust_ prefix before objd_unref
[lttng-ust.git] / include / ust / wait.h
index e92d52856c603144e105da87dab6533bf47bee04..6cc0e3732cec710133000d9d9dfd15b6556d1938 100644 (file)
@@ -30,7 +30,7 @@
                int __timeout = _timeout;                       \
                                                                \
                for (;;) {                                      \
-                       if (!(_cond))                           \
+                       if (_cond)                              \
                                break;                          \
                        if (__timeout <= 0) {                   \
                                __ret = -ETIMEDOUT;             \
@@ -38,7 +38,7 @@
                        }                                       \
                        __pollret = poll(NULL, 0, 10);  /* wait 10ms */ \
                        if (__pollret < 0) {                    \
-                               __ret = __pollret;              \
+                               __ret = -errno;                 \
                                break;                          \
                        }                                       \
                        __timeout -= 10;                        \
This page took 0.023981 seconds and 4 git commands to generate.