[svn-commits] russell: trunk r50230 - /trunk/channels/chan_iax2.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Jan 9 19:50:07 MST 2007


Author: russell
Date: Tue Jan  9 20:50:06 2007
New Revision: 50230

URL: http://svn.digium.com/view/asterisk?view=rev&rev=50230
Log:
Covert some spaces to tabs, and put a list of defines in an enum.

Modified:
    trunk/channels/chan_iax2.c

Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=50230&r1=50229&r2=50230
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Tue Jan  9 20:50:06 2007
@@ -513,9 +513,9 @@
 	/*! timeval that we base our delivery on */
 	struct timeval rxcore;
 	/*! The jitterbuffer */
-        jitterbuf *jb;
+	jitterbuf *jb;
 	/*! active jb read scheduler id */
-        int jbid;                       
+	int jbid;                       
 	/*! LAG */
 	int lag;
 	/*! Error, as discovered by the manager */
@@ -637,22 +637,24 @@
 
 static AST_LIST_HEAD_STATIC(firmwares, iax_firmware);
 
-/*! Extension exists */
-#define CACHE_FLAG_EXISTS		(1 << 0)
-/*! Extension is nonexistent */
-#define CACHE_FLAG_NONEXISTENT		(1 << 1)
-/*! Extension can exist */
-#define CACHE_FLAG_CANEXIST		(1 << 2)
-/*! Waiting to hear back response */
-#define CACHE_FLAG_PENDING		(1 << 3)
-/*! Timed out */
-#define CACHE_FLAG_TIMEOUT		(1 << 4)
-/*! Request transmitted */
-#define CACHE_FLAG_TRANSMITTED		(1 << 5)
-/*! Timeout */
-#define CACHE_FLAG_UNKNOWN		(1 << 6)
-/*! Matchmore */
-#define CACHE_FLAG_MATCHMORE		(1 << 7)
+enum {
+	/*! Extension exists */
+	CACHE_FLAG_EXISTS      = (1 << 0),
+	/*! Extension is nonexistent */
+	CACHE_FLAG_NONEXISTENT = (1 << 1),
+	/*! Extension can exist */
+	CACHE_FLAG_CANEXIST    = (1 << 2),
+	/*! Waiting to hear back response */
+	CACHE_FLAG_PENDING     = (1 << 3),
+	/*! Timed out */
+	CACHE_FLAG_TIMEOUT     = (1 << 4),
+	/*! Request transmitted */
+	CACHE_FLAG_TRANSMITTED = (1 << 5),
+	/*! Timeout */
+	CACHE_FLAG_UNKNOWN     = (1 << 6),
+	/*! Matchmore */
+	CACHE_FLAG_MATCHMORE   = (1 << 7),
+};
 
 struct iax2_dpcache {
 	char peercontext[AST_MAX_CONTEXT];



More information about the svn-commits mailing list