platform/netlink: fix nl_errno() to get absolute error number value

This commit is contained in:
Thomas Haller 2018-09-06 13:19:36 +02:00
parent c882633d48
commit 98f28ddf2e

View file

@ -62,7 +62,7 @@ nl_errno (int err)
* normalizes the error and returns its positive value. */
return err >= 0
? err
: ((err == G_MININT) ? NLE_BUG : -errno);
: ((err == G_MININT) ? NLE_BUG : -err);
}
static inline int