Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-03-18 01:33:13 UTC

Modified files:
  Tag: u2_10_12_branch
     ircd/list.c ChangeLog

Log message:

Avoid extra decrements of links.inuse.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.160 ircu2.10/ChangeLog:1.710.2.161
--- ircu2.10/ChangeLog:1.710.2.160      Sat Mar 17 15:45:33 2007
+++ ircu2.10/ChangeLog  Sat Mar 17 18:33:02 2007
@@ -1,3 +1,8 @@
+2007-03-17  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/list.c (free_link): Only decrement the in-use count of
+       links if we free a link.
+
 2007-03-17  Kevin L. Mitchell  <[EMAIL PROTECTED]>
 
        * ircd/s_err.c: update replies to handle new fields in
Index: ircu2.10/ircd/list.c
diff -u ircu2.10/ircd/list.c:1.34.2.3 ircu2.10/ircd/list.c:1.34.2.4
--- ircu2.10/ircd/list.c:1.34.2.3       Sun May  7 18:30:24 2006
+++ ircu2.10/ircd/list.c        Sat Mar 17 18:33:02 2007
@@ -19,7 +19,7 @@
  */
 /** @file
  * @brief Singly and doubly linked list manipulation implementation.
- * @version $Id: list.c,v 1.34.2.3 2006/05/08 01:30:24 entrope Exp $
+ * @version $Id: list.c,v 1.34.2.4 2007/03/18 01:33:02 entrope Exp $
  */
 #include "config.h"
 
@@ -448,8 +448,8 @@
   if (lp) {
     lp->next = slinkFreeList;
     slinkFreeList = lp;
+    links.inuse--;
   }
-  links.inuse--;
 }
 
 /** Add an element to a doubly linked list.
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to