summaryrefslogtreecommitdiffstats
path: root/lib/fib_lookup
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2024-05-29 16:01:34 (GMT)
committerThomas Haller <thaller@redhat.com>2024-05-29 18:03:38 (GMT)
commit5248e1a45576617b349465997822cef34cbc5053 (patch)
tree4e4e588cda887f1691afdea3186b4b413bf5e966 /lib/fib_lookup
parent9451842e1109d909a7803db2266ccb1f8f00eef2 (diff)
downloadlibnl-5248e1a45576617b349465997822cef34cbc5053.zip
libnl-5248e1a45576617b349465997822cef34cbc5053.tar.gz
libnl-5248e1a45576617b349465997822cef34cbc5053.tar.bz2
all: fix and enable "-Wsign-compare" warning
Diffstat (limited to 'lib/fib_lookup')
-rw-r--r--lib/fib_lookup/lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fib_lookup/lookup.c b/lib/fib_lookup/lookup.c
index 7ff2684..260f1d9 100644
--- a/lib/fib_lookup/lookup.c
+++ b/lib/fib_lookup/lookup.c
@@ -236,7 +236,7 @@ int flnl_lookup_build_request(struct flnl_request *req, int flags,
fr.fl_fwmark = fwmark != UINT_LEAST64_MAX ? fwmark : 0;
fr.fl_tos = tos >= 0 ? tos : 0;
fr.fl_scope = scope >= 0 ? scope : RT_SCOPE_UNIVERSE;
- fr.tb_id_in = table >= 0 ? table : RT_TABLE_UNSPEC;
+ fr.tb_id_in = table >= 0 ? (unsigned)table : (unsigned)RT_TABLE_UNSPEC;
addr = flnl_request_get_addr(req);
if (!addr)