[svn-commits] russell: linux/trunk r4657 - /linux/trunk/drivers/dahdi/dahdi-base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 1 23:38:56 CDT 2008


Author: russell
Date: Fri Aug  1 23:38:56 2008
New Revision: 4657

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4657
Log:
convert a list of defines to an enum

Modified:
    linux/trunk/drivers/dahdi/dahdi-base.c

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=4657&r1=4656&r2=4657
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Fri Aug  1 23:38:56 2008
@@ -226,8 +226,7 @@
 static struct file_operations dahdi_fops;
 struct file_operations *dahdi_transcode_fops = NULL;
 
-static struct
-{
+static struct {
 	int	src;	/* source conf number */
 	int	dst;	/* dst conf number */
 } conf_links[DAHDI_MAX_CONF + 1];
@@ -271,11 +270,13 @@
 
 */
 
-#define DIGIT_MODE_DTMF 	0
-#define DIGIT_MODE_MFR1		1
-#define DIGIT_MODE_PULSE	2
-#define DIGIT_MODE_MFR2_FWD	3
-#define DIGIT_MODE_MFR2_REV	4
+enum dahdi_digit_mode {
+	DIGIT_MODE_DTMF,
+	DIGIT_MODE_MFR1,
+	DIGIT_MODE_PULSE,
+	DIGIT_MODE_MFR2_FWD,
+	DIGIT_MODE_MFR2_REV,
+};
 
 #include "digits.h"
 




More information about the svn-commits mailing list