From Steve Magnani:
[obnox/wireshark/wip.git] / epan / slab.h
index a2182eb3e16f895f6e0c0a3c2eabe0cfb90353f6..27fc65370a08e2ea68b3975ae09dc11ec7a9e421 100644 (file)
@@ -1,10 +1,10 @@
 /* slab.h
  * Definitions for very simple slab handling
  *
- * $Id: slab.h,v 1.4 2004/07/04 02:29:43 guy Exp $
+ * $Id$
  *
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
  * This program is free software; you can redistribute it and/or
@@ -68,8 +68,8 @@
 
 #define SLAB_FREE(item, type)                                          \
 {                                                                      \
-       ((union type ## slab_item *)item)->next_free = type ## _free_list;      \
-       type ## _free_list = (union type ## slab_item *)item;           \
+       ((union type ## slab_item *)(void *)item)->next_free = type ## _free_list;      \
+       type ## _free_list = (union type ## slab_item *)(void *)item;           \
 }
 
 #endif /* slab.h */