macro: ensure ret_errno() always returns negative

parent ace51ce8
......@@ -665,8 +665,8 @@ enum {
#define ret_errno(__errno__) \
({ \
errno = (__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