Skip to content

Commit

Permalink
modules/ims_registrar_scscf: expires should be int and not unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybeepee committed Jun 7, 2016
1 parent 1368c57 commit 46bb888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ims_registrar_scscf/save.c
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 46bb888

Please sign in to comment.