Kernel: Fix definition of ticks_t
authorWill Sowerbutts <will@sowerbutts.com>
Thu, 8 Jan 2015 19:38:14 +0000 (19:38 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Thu, 8 Jan 2015 19:38:32 +0000 (19:38 +0000)
Kernel/cpu-6502/cpu.h
Kernel/cpu-6809/cpu.h
Kernel/cpu-z80/cpu.h

index ffce123..16e6370 100644 (file)
@@ -34,7 +34,7 @@ typedef struct {
 
 typedef union {            /* this structure is endian dependent */
     clock_t  full;         /* 32-bit count of ticks since boot */
-    union {
+    struct {
       uint16_t low;         /* 16-bit count of ticks since boot */
       uint16_t high;
     } h;
index 7470550..6b1ff9e 100644 (file)
@@ -37,7 +37,7 @@ typedef struct {
 
 typedef union {            /* this structure is endian dependent */
     clock_t  full;         /* 32-bit count of ticks since boot */
-    union {
+    struct {
       uint16_t high;
       uint16_t low;         /* 16-bit count of ticks since boot */
     } h;
index 6e1d0fd..5c2e956 100644 (file)
@@ -42,7 +42,7 @@ typedef struct {
 
 typedef union {            /* this structure is endian dependent */
     clock_t  full;         /* 32-bit count of ticks since boot */
-    union {
+    struct {
       uint16_t low;         /* 16-bit count of ticks since boot */
       uint16_t high;
     } h;