summaryrefslogtreecommitdiff
path: root/sysdep/bsd/krt-sock.Y
diff options
context:
space:
mode:
authorJan Maria Matejka <mq@ucw.cz>2017-12-13 10:29:10 +0100
committerJan Maria Matejka <mq@ucw.cz>2017-12-13 10:29:10 +0100
commitcb21c5ffa92494b1a4bf110605509de3326b6c3d (patch)
treebd1c37b57c1d1aa45efecf4868ddf7d3ff27c489 /sysdep/bsd/krt-sock.Y
parent71c51aa4ab0daa3490f9a488f505eb25102c4705 (diff)
parent1e11918c8c56e3505193f4e6426c1a34aaae3941 (diff)
Merge branch 'int-new' of gitlab.labs.nic.cz:labs/bird into int-new
Diffstat (limited to 'sysdep/bsd/krt-sock.Y')
-rw-r--r--sysdep/bsd/krt-sock.Y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdep/bsd/krt-sock.Y b/sysdep/bsd/krt-sock.Y
index 0218f188..81422c79 100644
--- a/sysdep/bsd/krt-sock.Y
+++ b/sysdep/bsd/krt-sock.Y
@@ -20,8 +20,8 @@ kern_sys_item:
KERNEL TABLE expr {
if ($3 && (krt_max_tables == 1))
cf_error("Multiple kernel routing tables not supported");
- if ($3 < 0 || $3 >= krt_max_tables)
- cf_error("Kernel table id must be in range 0-%d", krt_max_tables - 1);
+ if ($3 >= krt_max_tables)
+ cf_error("Kernel table id must be in range 0-%u", krt_max_tables - 1);
THIS_KRT->sys.table_id = $3;
}