summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
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);
}