Reverted the changes to the log() function, deleting the void* cast. The problem...
authormarta <marta@8c455092-636d-4788-adf5-e71def0336e8>
Thu, 7 Jan 2010 12:32:07 +0000 (12:32 +0000)
committermarta <marta@8c455092-636d-4788-adf5-e71def0336e8>
Thu, 7 Jan 2010 12:32:07 +0000 (12:32 +0000)
dummynet2/missing.h
dummynet2/radix.c

index 09ea13a..9bc11b5 100644 (file)
@@ -24,7 +24,7 @@
  */
 
 /*
- * $Id: missing.h 4666 2010-01-04 12:55:32Z luigi $
+ * $Id: missing.h 4696 2010-01-07 12:37:09Z marta $
  *
  * Header for kernel variables and functions that are not available in
  * userland.
@@ -160,7 +160,7 @@ struct malloc_type {
 #define        LOG_ERR         0x100
 #define        LOG_INFO        0x200
 #define log(_level, fmt, arg...)  do {                 \
-       int __unused x=_level;printk(KERN_ERR fmt, ##arg); } while (0)
+       int __unused _qwerty=_level; printk(KERN_ERR fmt, ##arg); } while (0)
 
 /*
  * gettimeofday would be in sys/time.h but it is not
index 6e256d3..7c8c4bf 100644 (file)
@@ -934,13 +934,8 @@ on1:
                                                MKFree(m);
                                        m = mm;
                                }
-                       if (m) {
-                               /* these two variables are used to avoid a possible
-                                  compiler bug while using a macro with variable arguments */
-                               void *log_m = m;
-                               void *log_x = x;
-                               log(LOG_ERR, "rn_delete: Orphaned Mask %p at %p\n", log_m, log_x);
-                       }
+                       if (m)
+                               log(LOG_ERR, "rn_delete: Orphaned Mask %p at %p\n", m, x);
                }
        }
        /*