Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2006-06-29 00:36:45 UTC

Modified files:
     include/ircd_alloc.h ChangeLog

Log message:

Fix "if" nesting for MyFree() macro.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.781 ircu2.10/ChangeLog:1.782
--- ircu2.10/ChangeLog:1.781    Tue Jun 27 04:29:06 2006
+++ ircu2.10/ChangeLog  Wed Jun 28 17:36:35 2006
@@ -1,3 +1,7 @@
+2006-06-28  Michael Poole <[EMAIL PROTECTED]>
+
+       * include/ircd_alloc.h (MyFree): Fix "if" nesting.
+
 2006-06-27  Michael Poole <[EMAIL PROTECTED]>
 
        * doc/example.conf: Demonstrate the new inclusion syntax.
Index: ircu2.10/include/ircd_alloc.h
diff -u ircu2.10/include/ircd_alloc.h:1.8 ircu2.10/include/ircd_alloc.h:1.9
--- ircu2.10/include/ircd_alloc.h:1.8   Wed Jan 26 20:07:44 2005
+++ ircu2.10/include/ircd_alloc.h       Wed Jun 28 17:36:35 2006
@@ -20,7 +20,7 @@
  */
 /** @file
  * @brief IRC daemon memory allocation functions.
- * @version $Id: ircd_alloc.h,v 1.8 2005/01/27 04:07:44 entrope Exp $
+ * @version $Id: ircd_alloc.h,v 1.9 2006/06/29 00:36:35 entrope Exp $
  */
 #ifndef INCLUDED_ircd_alloc_h
 #define INCLUDED_ircd_alloc_h
@@ -43,8 +43,7 @@
 
 /** Helper macro for freeing memory. */
 #define MyFree(p) \
-  if (p) \
-    DoFree(p, __FILE__, __LINE__)
+  do { if (p) DoFree(p, __FILE__, __LINE__); } while(0)
 
 /** Helper macro for reallocating memory. */
 #define MyRealloc(p, size) \
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to