Module: kamailio Branch: master Commit: 46bb888e49524b1fe1e583bd45348fe6b1f12f46 URL: https://github.com/kamailio/kamailio/commit/46bb888e49524b1fe1e583bd45348fe6...
Author: jaybeepee jason.penton@gmail.com Committer: jaybeepee jason.penton@gmail.com Date: 2016-06-07T08:42:15+02:00
modules/ims_registrar_scscf: expires should be int and not unsigned int
---
Modified: modules/ims_registrar_scscf/save.c
---
Diff: https://github.com/kamailio/kamailio/commit/46bb888e49524b1fe1e583bd45348fe6... Patch: https://github.com/kamailio/kamailio/commit/46bb888e49524b1fe1e583bd45348fe6...
---
diff --git a/modules/ims_registrar_scscf/save.c b/modules/ims_registrar_scscf/save.c index 4d7707a..624e0a9 100644 --- a/modules/ims_registrar_scscf/save.c +++ b/modules/ims_registrar_scscf/save.c @@ -108,7 +108,7 @@ static inline int randomize_expires(int expires, int range) { * 3) If the message contained no expires header field, use * the default value */ -static inline int calc_contact_expires(contact_t *c, unsigned int expires_hdr, int sos_reg) { +static inline int calc_contact_expires(contact_t *c, int expires_hdr, int sos_reg) { unsigned int r;
if (expires_hdr >= 0U) @@ -513,7 +513,7 @@ static inline int is_impu_registered(udomain_t* _d, str* public_identity) { * update the contacts for a public identity. Make sure you have the lock on the domain before calling this * returns 0 on success, -1 on failure */ -static inline int update_contacts_helper(struct sip_msg* msg, impurecord_t* impu_rec, int assignment_type, unsigned int expires_hdr) { +static inline int update_contacts_helper(struct sip_msg* msg, impurecord_t* impu_rec, int assignment_type, int expires_hdr) { struct hdr_field* h; contact_t* chi; //contact header information ucontact_info_t* ci; //ucontact info