mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 10:08:05 +02:00
merge: branch 'ih/fix_uint_uflow'
daemon: fix substraction underflow https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2409
This commit is contained in:
commit
81209b4688
1 changed files with 2 additions and 2 deletions
|
|
@ -8161,8 +8161,8 @@ compare_device_remove_order(const CList *a, const CList *b, const void *user_dat
|
|||
|
||||
/* priority: software AND dhcp first, then dhcp only
|
||||
* then everything else,*/
|
||||
uint a_score = a_has_dhcp ? (a_is_software ? 2 : 1) : 0;
|
||||
uint b_score = b_has_dhcp ? (b_is_software ? 2 : 1) : 0;
|
||||
int a_score = a_has_dhcp ? (a_is_software ? 2 : 1) : 0;
|
||||
int b_score = b_has_dhcp ? (b_is_software ? 2 : 1) : 0;
|
||||
|
||||
return b_score - a_score;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue