From: wessels <> Date: Sat, 1 Aug 1998 04:23:55 +0000 (+0000) Subject: compiler X-Git-Tag: SQUID_3_0_PRE1~2940 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f7e508bc2a8ef7876e0cf8c48937e716757d0fe;p=thirdparty%2Fsquid.git compiler --- diff --git a/lib/util.c b/lib/util.c index 23879bda6f..70b9289914 100644 --- a/lib/util.c +++ b/lib/util.c @@ -1,6 +1,6 @@ /* - * $Id: util.c,v 1.62 1998/07/22 20:36:39 wessels Exp $ + * $Id: util.c,v 1.63 1998/07/31 22:23:55 wessels Exp $ * * DEBUG: * AUTHOR: Harvest Derived @@ -211,7 +211,7 @@ check_malloc(void *p, size_t sz) int B, I; if (!dbg_initd) check_init(); - B = DBG_HASH_BUCKET(s); + B = DBG_HASH_BUCKET(p); for (I = 0; I < DBG_ARRY_SZ; I++) { if (!(P = malloc_ptrs[B][I])) continue; @@ -244,7 +244,7 @@ size_t xmallocblksize(void *p) { int B, I; - B = DBG_HASH_BUCKET(s); + B = DBG_HASH_BUCKET(p); for (I = 0; I < DBG_ARRY_SZ; I++) { if (malloc_ptrs[B][I] == p) return malloc_size[B][I]; @@ -258,7 +258,7 @@ static char * malloc_file_name(void *p) { int B, I; - B = DBG_HASH_BUCKET(s); + B = DBG_HASH_BUCKET(p); for (I = 0; I < DBG_ARRY_SZ; I++) { if (malloc_ptrs[B][I] == p) return malloc_file[B][I]; @@ -269,7 +269,7 @@ int malloc_line_number(void *p) { int B, I; - B = DBG_HASH_BUCKET(s); + B = DBG_HASH_BUCKET(p); for (I = 0; I < DBG_ARRY_SZ; I++) { if (malloc_ptrs[B][I] == p) return malloc_line[B][I]; @@ -280,7 +280,7 @@ int malloc_number(void *p) { int B, I; - B = DBG_HASH_BUCKET(s); + B = DBG_HASH_BUCKET(p); for (I = 0; I < DBG_ARRY_SZ; I++) { if (malloc_ptrs[B][I] == p) return malloc_count[B][I]; @@ -331,7 +331,7 @@ xmalloc_scan_region(void *start, int size, int depth) while (ptr <= end) { void *p = *(void **) ptr; if (p && p != start) { - B = DBG_HASH_BUCKET(s); + B = DBG_HASH_BUCKET(p); for (I = 0; I < DBG_ARRY_SZ; I++) { if (malloc_ptrs[B][I] == p) { if (!malloc_refs[B][I]++) {