mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 21:50:11 +01:00
platform/netlink: fix nl_errno() to get absolute error number value
This commit is contained in:
parent
c882633d48
commit
98f28ddf2e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue