From: Ted Lemon Date: Thu, 25 Jan 2001 08:26:36 +0000 (+0000) Subject: Add an rc_history_count variable so that we can see if the history overflew X-Git-Tag: V3-BETA-2-PATCH-15~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0de25c53bd69faa82d1c6aa060f741225be34c3;p=thirdparty%2Fdhcp.git Add an rc_history_count variable so that we can see if the history overflew --- diff --git a/includes/omapip/alloc.h b/includes/omapip/alloc.h index 792b95203..911b61ebd 100644 --- a/includes/omapip/alloc.h +++ b/includes/omapip/alloc.h @@ -85,7 +85,8 @@ struct rc_history_entry { rc_history [rc_history_index].addr = (y); \ rc_history [rc_history_index].refcnt = (z); \ if (++rc_history_index == RC_HISTORY_MAX) \ - rc_history_index = 0;\ + rc_history_index = 0; \ + ++rc_history_count; \ } while (0) #define rc_register_mdl(r, y, z) \ rc_register (__FILE__, __LINE__, r, y, z) @@ -105,4 +106,5 @@ extern unsigned long dmalloc_cutoff_generation; #if defined (DEBUG_RC_HISTORY) extern struct rc_history_entry rc_history [RC_HISTORY_MAX]; extern int rc_history_index; +extern int rc_history_count; #endif