patch-2.1.27 linux/include/net/x25.h

Next file: linux/init/main.c
Previous file: linux/include/net/sock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.26/linux/include/net/x25.h linux/include/net/x25.h
@@ -52,17 +52,20 @@
 #define	X25_COND_PEER_RX_BUSY	0x04
 
 /* Define Link State constants. */
+enum {
+	X25_STATE_0,		/* Ready */
+	X25_STATE_1,		/* Awaiting Call Accepted */
+	X25_STATE_2,		/* Awaiting Clear Confirmation */
+	X25_STATE_3,		/* Data Transfer */
+	X25_STATE_4		/* Awaiting Reset Confirmation */
+};
 
-#define X25_STATE_0		0		/* Ready */
-#define X25_STATE_1		1		/* Awaiting Call Accepted */
-#define X25_STATE_2		2		/* Awaiting Clear Confirmation */
-#define X25_STATE_3		3		/* Data Transfer */
-#define	X25_STATE_4		4		/* Awaiting Reset Confirmation */
-
-#define	X25_LINK_STATE_0	0
-#define	X25_LINK_STATE_1	1
-#define	X25_LINK_STATE_2	2
-#define	X25_LINK_STATE_3	3
+enum {
+	X25_LINK_STATE_0,
+	X25_LINK_STATE_1,
+	X25_LINK_STATE_2,
+	X25_LINK_STATE_3
+};
 
 #define X25_DEFAULT_T20		(180 * X25_SLOWHZ)	/* Default T20 value */
 #define X25_DEFAULT_T21		(200 * X25_SLOWHZ)	/* Default T21 value */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov