Use union instead of struct. Fixes bug #571951
authorJeff Cai <jeff.cai@sun.com>
Thu, 19 Feb 2009 03:41:47 +0000 (03:41 +0000)
committerJeff Cai <jeffcai@src.gnome.org>
Thu, 19 Feb 2009 03:41:47 +0000 (03:41 +0000)
2009-02-19  Jeff Cai <jeff.cai@sun.com>

    * egg/egg-secure-memory.c:
    Use union instead of struct.
    Fixes bug #571951

svn path=/trunk/; revision=1606

egg/egg-secure-memory.c

index d2d18d7..5e67c41 100644 (file)
@@ -148,11 +148,9 @@ unused_peek (void **stack)
  */
 
 /* Pool allocates this data type */
-typedef struct _Item {
-       union {
+typedef union _Item {
                Cell cell;
                Block block;
-       };
 } Item;
 
 typedef struct _Pool {