macro: ensure ret_errno() always returns negative

parent ace51ce8
......@@ -663,10 +663,10 @@ enum {
__internal_ret__; \
})
#define ret_errno(__errno__) \
({ \
errno = (__errno__); \
-(__errno__); \
#define ret_errno(__errno__) \
({ \
errno = labs(__errno__); \
-errno; \
})
/* Container's specific file/directory names */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment