summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-02-06 23:22:00 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-02-06 23:22:00 +0000
commit3318608864fcb14a5c03e4cf97495dbd6d23bfd7 (patch)
treee4103eeca8e2180f8253c294c942f6aa1de9c6f2 /usr.sbin
parent80c4a98d1fdcc445a241d9895e7b7e684aacec71 (diff)
SIZE_MAX is standard, we should be using it in preference to the
obsolete SIZE_T_MAX. OK miod@ beck@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/snmpd/pf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/snmpd/pf.c b/usr.sbin/snmpd/pf.c
index 5421583f223..df4ccf7e5ff 100644
--- a/usr.sbin/snmpd/pf.c
+++ b/usr.sbin/snmpd/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.9 2015/01/21 21:50:33 deraadt Exp $ */
+/* $OpenBSD: pf.c,v 1.10 2015/02/06 23:21:59 millert Exp $ */
/*
* Copyright (c) 2012 Joel Knight <joel@openbsd.org>
@@ -43,11 +43,11 @@
#include <err.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <limits.h>
#include <event.h>
#include "snmpd.h"
@@ -145,7 +145,7 @@ pfr_buf_grow(struct pfr_buffer *b, int minsize)
} else {
if (minsize == 0)
minsize = b->pfrb_msize * 2;
- if (minsize < 0 || (size_t)minsize >= SIZE_T_MAX / bs) {
+ if (minsize < 0 || (size_t)minsize >= SIZE_MAX / bs) {
/* msize overflow */
return (-1);
}