[dahdi-commits] tzafrir: linux/trunk r10433 - /linux/trunk/drivers/dahdi/xpp/
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Thu Jan 12 11:11:50 CST 2012
Author: tzafrir
Date: Thu Jan 12 11:11:46 2012
New Revision: 10433
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10433
Log:
xpp: style - no more typedef byte
Signed-off-by: Oron Peled <oron.peled at xorcom.com>
Acked-By: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Modified:
linux/trunk/drivers/dahdi/xpp/xdefs.h
linux/trunk/drivers/dahdi/xpp/xproto.h
Modified: linux/trunk/drivers/dahdi/xpp/xdefs.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/xdefs.h?view=diff&rev=10433&r1=10432&r2=10433
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xdefs.h (original)
+++ linux/trunk/drivers/dahdi/xpp/xdefs.h Thu Jan 12 11:11:46 2012
@@ -102,7 +102,6 @@
#define CHAN_BITS 5 /* 0-31 for E1 */
typedef char *charp;
-typedef unsigned char byte;
#ifdef __KERNEL__
/* Kernel versions... */
@@ -171,8 +170,8 @@
typedef struct xframe xframe_t;
typedef struct xpacket xpacket_t;
typedef __u32 xpp_line_t; /* at most 31 lines for E1 */
-typedef byte lineno_t;
-typedef byte xportno_t;
+typedef __u8 lineno_t;
+typedef __u8 xportno_t;
#define PORT_BROADCAST 255
Modified: linux/trunk/drivers/dahdi/xpp/xproto.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/xproto.h?view=diff&rev=10433&r1=10432&r2=10433
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xproto.h (original)
+++ linux/trunk/drivers/dahdi/xpp/xproto.h Thu Jan 12 11:11:46 2012
@@ -81,7 +81,7 @@
#define XPD_TYPE_ECHO 5 // Octasic echo canceller
#define XPD_TYPE_NOMODULE 7
-typedef byte xpd_type_t;
+typedef __u8 xpd_type_t;
#define XPD_TYPE_PREFIX "xpd-type-"
@@ -168,7 +168,7 @@
#define MULTIBYTE_MAX_LEN 5 /* FPGA firmware limitation */
typedef struct reg_cmd {
- byte bytes:3; /* Length (for Multibyte) */
+ __u8 bytes:3; /* Length (for Multibyte) */
__u8 eoframe:1; /* For BRI -- end of frame */
__u8 portnum:3; /* For port specific registers */
__u8 is_multibyte:1;
More information about the dahdi-commits
mailing list