build: avoid invalid compiler warning
NetworkManagerUtils.c:3308:93: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
key_len = (((key_len) > (((guint32) 0xffffffff))) ? (((guint32) 0xffffffff)) : (((key_len) < (0)) ? (0) : (key_len)));
~~~~~~~~~ ^ ~~~
Fixes: e603c86926
This commit is contained in:
@@ -3305,7 +3305,7 @@ _set_stable_privacy (struct in6_addr *addr,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
key_len = CLAMP (key_len, 0, G_MAXUINT32);
|
||||
key_len = MIN (key_len, G_MAXUINT32);
|
||||
|
||||
g_checksum_update (sum, addr->s6_addr, 8);
|
||||
g_checksum_update (sum, (const guchar *) ifname, strlen (ifname) + 1);
|
||||
|
Reference in New Issue
Block a user