mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-24 00:30:30 +01:00
libnm-core: fix other int comparisons in team setting
I forgot to update them when applying commit72b4541771. Fixes:72b4541771(cherry picked from commit17a942b458)
This commit is contained in:
parent
faeda5fdbf
commit
3a6da57b16
1 changed files with 7 additions and 7 deletions
|
|
@ -127,7 +127,7 @@ nm_team_link_watcher_new_ethtool (int delay_up,
|
|||
|
||||
if (delay_up < 0 || !_NM_INT_LE_MAXINT32 (delay_up))
|
||||
val_fail = "delay-up";
|
||||
if (delay_down < 0 || !_NM_INT_LE_MAXINT32 (delay_up))
|
||||
if (delay_down < 0 || !_NM_INT_LE_MAXINT32 (delay_down))
|
||||
val_fail = "delay-down";
|
||||
if (val_fail) {
|
||||
g_set_error (error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_FAILED,
|
||||
|
|
@ -182,11 +182,11 @@ nm_team_link_watcher_new_nsna_ping (int init_wait,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (init_wait < 0 || init_wait > G_MAXINT32)
|
||||
if (init_wait < 0 || !_NM_INT_LE_MAXINT32 (init_wait))
|
||||
val_fail = "init-wait";
|
||||
if (interval < 0 || interval > G_MAXINT32)
|
||||
if (interval < 0 || !_NM_INT_LE_MAXINT32 (interval))
|
||||
val_fail = "interval";
|
||||
if (missed_max < 0 || missed_max > G_MAXINT32)
|
||||
if (missed_max < 0 || !_NM_INT_LE_MAXINT32 (missed_max))
|
||||
val_fail = "missed-max";
|
||||
if (val_fail) {
|
||||
g_set_error (error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_FAILED,
|
||||
|
|
@ -255,11 +255,11 @@ nm_team_link_watcher_new_arp_ping (int init_wait,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (init_wait < 0 || init_wait > G_MAXINT32)
|
||||
if (init_wait < 0 || !_NM_INT_LE_MAXINT32 (init_wait))
|
||||
val_fail = "init-wait";
|
||||
if (interval < 0 || interval > G_MAXINT32)
|
||||
if (interval < 0 || !_NM_INT_LE_MAXINT32 (interval))
|
||||
val_fail = "interval";
|
||||
if (missed_max < 0 || missed_max > G_MAXINT32)
|
||||
if (missed_max < 0 || !_NM_INT_LE_MAXINT32 (missed_max))
|
||||
val_fail = "missed-max";
|
||||
if (val_fail) {
|
||||
g_set_error (error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_FAILED,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue