[sr-dev] git:master:656fbc9c: core: msgid made unsigned inside msg_ctx_id_t to match field in sip_msg_t

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 26 08:05:49 CET 2019


Module: kamailio
Branch: master
Commit: 656fbc9c12426ef3816d680f4fbae05017ceda54
URL: https://github.com/kamailio/kamailio/commit/656fbc9c12426ef3816d680f4fbae05017ceda54

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-02-26T08:05:27+01:00

core: msgid made unsigned inside msg_ctx_id_t to match field in sip_msg_t

---

Modified: src/core/parser/msg_parser.h

---

Diff:  https://github.com/kamailio/kamailio/commit/656fbc9c12426ef3816d680f4fbae05017ceda54.diff
Patch: https://github.com/kamailio/kamailio/commit/656fbc9c12426ef3816d680f4fbae05017ceda54.patch

---

diff --git a/src/core/parser/msg_parser.h b/src/core/parser/msg_parser.h
index 969fbc6f9b..6890fee0b3 100644
--- a/src/core/parser/msg_parser.h
+++ b/src/core/parser/msg_parser.h
@@ -474,11 +474,11 @@ void reset_ua(struct sip_msg* const msg);
 
 /**
  * struct to identify a msg context
- * - the pair of pid and message-id
+ * - the pair of message-id and pid (fields in sip_msg_t)
  */
 typedef struct msg_ctx_id {
+	unsigned int msgid;
 	int pid;
-	int msgid;
 } msg_ctx_id_t;
 
 /**




More information about the sr-dev mailing list