From: Stefan Weil Date: Thu, 22 Jul 2010 20:15:24 +0000 (+0200) Subject: slirp: Remove declarations which are no longer needed X-Git-Tag: xen-15-06-02~7226 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=08dc07a32b76943417b465d2d2c464c13b566a82;p=people%2Fsstabellini%2Fqemu-dm.git%2F.git slirp: Remove declarations which are no longer needed The previous patches replaced u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types from stdint.h, so we can now remove their declarations which are no longer needed. Signed-off-by: Stefan Weil Signed-off-by: Aurelien Jarno --- diff --git a/slirp/slirp.h b/slirp/slirp.h index 79d9ecb58c..3a5d592fb9 100644 --- a/slirp/slirp.h +++ b/slirp/slirp.h @@ -7,10 +7,6 @@ #ifdef _WIN32 # include -typedef uint8_t u_int8_t; -typedef uint16_t u_int16_t; -typedef uint32_t u_int32_t; -typedef uint64_t u_int64_t; typedef char *caddr_t; # include @@ -38,35 +34,6 @@ typedef char *caddr_t; #include -#ifdef NEED_TYPEDEFS -typedef char int8_t; -typedef unsigned char u_int8_t; - -# if SIZEOF_SHORT == 2 - typedef short int16_t; - typedef unsigned short u_int16_t; -# else -# if SIZEOF_INT == 2 - typedef int int16_t; - typedef unsigned int u_int16_t; -# else - #error Cannot find a type with sizeof() == 2 -# endif -# endif - -# if SIZEOF_SHORT == 4 - typedef short int32_t; - typedef unsigned short u_int32_t; -# else -# if SIZEOF_INT == 4 - typedef int int32_t; - typedef unsigned int u_int32_t; -# else - #error Cannot find a type with sizeof() == 4 -# endif -# endif -#endif /* NEED_TYPEDEFS */ - #ifdef HAVE_UNISTD_H # include #endif