Module: sip-router
Branch: master
Commit: e6e0419a46c3e5127d07c95390931d10b2a01c3b
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e6e0419…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Aug 4 14:22:41 2013 +0200
imc: wrap bit shift defines in parenthesis
- avoid priority conflicts when using the defines
- reported by Shankar
---
modules/imc/imc_mng.h | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/modules/imc/imc_mng.h b/modules/imc/imc_mng.h
index ead106f..f707343 100644
--- a/modules/imc/imc_mng.h
+++ b/modules/imc/imc_mng.h
@@ -37,11 +37,11 @@
#include "../../str.h"
#include "../../parser/parse_from.h"
-#define IMC_MEMBER_OWNER 1<<0
-#define IMC_MEMBER_ADMIN 1<<1
-#define IMC_MEMBER_INVITED 1<<2
-#define IMC_MEMBER_DELETED 1<<3
-#define IMC_MEMBER_SKIP 1<<4
+#define IMC_MEMBER_OWNER (1<<0)
+#define IMC_MEMBER_ADMIN (1<<1)
+#define IMC_MEMBER_INVITED (1<<2)
+#define IMC_MEMBER_DELETED (1<<3)
+#define IMC_MEMBER_SKIP (1<<4)
typedef struct _imc_member
{
@@ -54,8 +54,8 @@ typedef struct _imc_member
struct _imc_member * prev;
} imc_member_t, *imc_member_p;
-#define IMC_ROOM_PRIV 1<<0
-#define IMC_ROOM_DELETED 1<<1
+#define IMC_ROOM_PRIV (1<<0)
+#define IMC_ROOM_DELETED (1<<1)
typedef struct del_member
{
str room_name;