[svn-commits] simon.perreault: branch group/v6-new r272647 - /team/group/v6-new/include/ast...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Jun 28 08:57:16 CDT 2010
Author: simon.perreault
Date: Mon Jun 28 08:57:13 2010
New Revision: 272647
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=272647
Log:
Use bitshifts for defining flags.
Modified:
team/group/v6-new/include/asterisk/netsock2.h
Modified: team/group/v6-new/include/asterisk/netsock2.h
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/include/asterisk/netsock2.h?view=diff&rev=272647&r1=272646&r2=272647
==============================================================================
--- team/group/v6-new/include/asterisk/netsock2.h (original)
+++ team/group/v6-new/include/asterisk/netsock2.h Mon Jun 28 08:57:13 2010
@@ -125,9 +125,9 @@
*/
int ast_sockaddr_cmp_addr(const struct ast_sockaddr *a, const struct ast_sockaddr *b);
-#define AST_SOCKADDR_STR_ADDR 1
-#define AST_SOCKADDR_STR_PORT 2
-#define AST_SOCKADDR_STR_BRACKETS 4
+#define AST_SOCKADDR_STR_ADDR (1 << 0)
+#define AST_SOCKADDR_STR_PORT (1 << 1)
+#define AST_SOCKADDR_STR_BRACKETS (1 << 2)
#define AST_SOCKADDR_STR_HOST AST_SOCKADDR_STR_ADDR | AST_SOCKADDR_STR_BRACKETS
#define AST_SOCKADDR_STR_DEFAULT AST_SOCKADDR_STR_ADDR | AST_SOCKADDR_STR_PORT
More information about the svn-commits
mailing list