diff options
author | Thomas Haller <thaller@redhat.com> | 2020-05-24 12:14:42 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-05-24 12:16:04 +0200 |
commit | 650c550ab57fb2ca027812c4e50ed7853cc58482 (patch) | |
tree | bd8e22c307a4abc223b43012ccfb7aec32ade3e7 | |
parent | 2b542020898873e0a67b4ec506546773f5cfd43c (diff) | |
download | NetworkManager-650c550ab57fb2ca027812c4e50ed7853cc58482.tar.gz |
platform: don't use unsigned constants in _link_type_from_rtnl_type(), _link_type_from_devtype()
-rw-r--r-- | src/platform/nm-linux-platform.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 13eb1e3e34..a721fc7cfa 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -737,14 +737,14 @@ _link_type_from_rtnl_type (const char *name) \ return LIST[imid]; if (cmp < 0) - imin = imid + 1u; + imin = imid + 1; else - imax = imid - 1u; + imax = imid - 1; if (G_UNLIKELY (imin > imax)) return NM_LINK_TYPE_NONE; - imid = (imin + imax) / 2u; + imid = (imin + imax) / 2; } } } @@ -798,14 +798,14 @@ _link_type_from_devtype (const char *name) \ return LIST[imid]; if (cmp < 0) - imin = imid + 1u; + imin = imid + 1; else - imax = imid - 1u; + imax = imid - 1; if (G_UNLIKELY (imin > imax)) return NM_LINK_TYPE_NONE; - imid = (imin + imax) / 2u; + imid = (imin + imax) / 2; } } } |