summaryrefslogtreecommitdiff
path: root/omapip
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2016-07-27 10:41:26 -0700
committerShawn Routhier <sar@isc.org>2016-07-27 10:41:26 -0700
commit10b7683e586b8462c17bc766be8cb8322c227abc (patch)
tree9b0d03c85b50876e078f041dda563d1facebe86f /omapip
parent2427d9e70a63481fae3e7485ffe7d3c14fab729a (diff)
downloadisc-dhcp-10b7683e586b8462c17bc766be8cb8322c227abc.tar.gz
[master] Update dmalloc to use a size_t as an argument
Update dmalloc to use a size_t as an argument which will bring it in line with the call it makes to malloc and avoid possible truncation.
Diffstat (limited to 'omapip')
-rw-r--r--omapip/alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/omapip/alloc.c b/omapip/alloc.c
index a70fe21d..90543446 100644
--- a/omapip/alloc.c
+++ b/omapip/alloc.c
@@ -4,7 +4,7 @@
protocol... */
/*
- * Copyright (c) 2012,2014 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2012,2014,2016 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 2009-2010 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 2004-2007 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1999-2003 by Internet Software Consortium
@@ -53,9 +53,9 @@ static void print_rc_hist_entry (int);
#endif
void *
-dmalloc(unsigned size, const char *file, int line) {
+dmalloc(size_t size, const char *file, int line) {
unsigned char *foo;
- unsigned len;
+ size_t len;
void **bar;
#if defined (DEBUG_MEMORY_LEAKAGE) || defined (DEBUG_MALLOC_POOL) || \
defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT)