summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2019-02-14 10:23:29 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2019-02-14 10:23:29 +0000
commit270dbfd7e8a56ae802753ce4cbe587e3a6f74955 (patch)
treeec33421201d4387bf7aa8f6aa8657aa2c8512276 /usr.sbin/bgpd
parent0e7b8f9c849ccf0e03bab38bab7982260a86f89b (diff)
Use the portable SIZE_MAX instead of SIZE_T_MAX
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/rde_sets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_sets.c b/usr.sbin/bgpd/rde_sets.c
index b533773b6bd..338080284f4 100644
--- a/usr.sbin/bgpd/rde_sets.c
+++ b/usr.sbin/bgpd/rde_sets.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_sets.c,v 1.7 2019/01/05 13:12:35 claudio Exp $ */
+/* $OpenBSD: rde_sets.c,v 1.8 2019/02/14 10:23:28 claudio Exp $ */
/*
* Copyright (c) 2018 Claudio Jeker <claudio@openbsd.org>
@@ -151,7 +151,7 @@ set_add(struct set_table *set, void *elms, size_t nelms)
u_int32_t *s;
size_t new_size;
- if (set->nmemb >= SIZE_T_MAX - 4096 - nelms) {
+ if (set->nmemb >= SIZE_MAX - 4096 - nelms) {
errno = ENOMEM;
return -1;
}