From 10b7683e586b8462c17bc766be8cb8322c227abc Mon Sep 17 00:00:00 2001 From: Shawn Routhier Date: Wed, 27 Jul 2016 10:41:26 -0700 Subject: [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. --- omapip/alloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'omapip') 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) -- cgit v1.2.1