2
0
Эх сурвалжийг харах

core: parser - internal msg flags typedefed to unsigned long long

- type msg_flags_t
- unsigned int size flags were filled
Daniel-Constantin Mierla 2 жил өмнө
parent
commit
7000c33ab5

+ 1 - 1
src/core/parser/msg_parser.c

@@ -63,7 +63,7 @@
 /* number of via's encountered */
 int via_cnt;
 /* global request flags */
-unsigned int global_req_flags = 0;
+msg_flags_t global_req_flags = 0;
 
 int ksr_sip_parser_mode = KSR_SIP_PARSER_MODE_STRICT;
 

+ 4 - 2
src/core/parser/msg_parser.h

@@ -234,6 +234,8 @@ enum _uri_flags
 }; /* bit fields */
 typedef enum _uri_flags uri_flags;
 
+typedef unsigned long long msg_flags_t;
+
 /*! \brief The SIP uri object */
 struct sip_uri
 {
@@ -423,7 +425,7 @@ typedef struct sip_msg
 
 	unsigned int hash_index;		/*!< index to TM hash table; stored in core
 								to avoid unnecessary calculations */
-	unsigned int msg_flags;			/*!< internal flags used by core */
+	msg_flags_t msg_flags;			/*!< internal flags used by core */
 	flag_t flags;					/*!< config flags */
 	flag_t xflags[KSR_XFLAGS_SIZE]; /*!< config extended flags */
 	str set_global_address;
@@ -459,7 +461,7 @@ extern int via_cnt;
  * a flag value is checked, e.g.:
  * if ((msg->msg_flags|global_req_flags) & FL_XXX) ...
  */
-extern unsigned int global_req_flags;
+extern msg_flags_t global_req_flags;
 
 
 int parse_msg(