Skip to contentSkip to conversation

tests: Move typedefs to one place.

PATCH New Gleb Natapov 1 participant 1 message Oct 29, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: Move typedefs to one place.

kvm/user/test/lib/libcflat.h +6 -0
index 1f96cb8..1da4013 100644
@@ -22,6 +22,12 @@
 
 #include <stdarg.h>
 
+typedef unsigned char u8;
+typedef unsigned short u16;
+typedef unsigned u32;
+typedef unsigned long ulong;
+typedef unsigned long long u64;
+
 extern void exit(int code);
 extern void panic(char *fmt, ...);
 
kvm/user/test/lib/x86/apic.c +0 -6
index 1fc3888..7bb98ed 100644
@@ -4,12 +4,6 @@
 static void *g_apic = (void *)0xfee00000;
 static void *g_ioapic = (void *)0xfec00000;
 
-typedef unsigned char u8;
-typedef unsigned short u16;
-typedef unsigned u32;
-typedef unsigned long ulong;
-typedef unsigned long long u64;
-
 struct apic_ops {
     u32 (*reg_read)(unsigned reg);
     void (*reg_write)(unsigned reg, u32 val);
kvm/user/test/x86/apic.c +0 -6
index 1edfba5..4e89c77 100644
@@ -2,12 +2,6 @@
 #include "apic.h"
 #include "vm.h"
 
-typedef unsigned char u8;
-typedef unsigned short u16;
-typedef unsigned u32;
-typedef unsigned long ulong;
-typedef unsigned long long u64;
-
 typedef struct {
     unsigned short offset0;
     unsigned short selector;
kvm/user/test/x86/tsc.c +0 -2
index 204b1fd..394a9c6 100644
@@ -1,7 +1,5 @@
 #include "libcflat.h"
 
-typedef unsigned long long u64;
-
 u64 rdtsc(void)
 {
 	unsigned a, d;

--
Gleb.