Browse code

ims_registrar_scscf: use TIME_T_INT_FMT

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>

Sebastian Kemper authored on 22/10/2021 23:46:27
Showing 2 changed files
... ...
@@ -54,6 +54,7 @@
54 54
 #include "../../core/parser/parse_from.h"
55 55
 #include "../../core/parser/parse_content.h"
56 56
 #include "../../core/parser/parse_uri.h"
57
+#include "../../core/dprint.h" /* TIME_T_INT_FMT */
57 58
 #include <libxml/parser.h>
58 59
 
59 60
 #include "../../lib/ims/useful_defs.h"
... ...
@@ -1517,7 +1518,7 @@ void create_notifications(udomain_t* _t, impurecord_t* r_passed, ucontact_t* c_p
1517 1518
             subscription_state.len = 0;
1518 1519
             if (subscription_state.s) {
1519 1520
 
1520
-                sprintf(subscription_state.s, "%.*s%ld", subs_active.len,
1521
+                sprintf(subscription_state.s, "%.*s%" TIME_T_INT_FMT, subs_active.len,
1521 1522
                         subs_active.s, s->expires - act_time);
1522 1523
                 subscription_state.len = strlen(subscription_state.s);
1523 1524
             }
... ...
@@ -545,7 +545,7 @@ static inline int update_contacts_helper(struct sip_msg* msg, impurecord_t* impu
545 545
                         LM_DBG("Need to update contact: <%.*s>: "
546 546
                                 "q_value [%d],"
547 547
                                 "sos: [%d],"
548
-                                "expires [%ld]\n", chi->uri.len, chi->uri.s, qvalue, sos, expires - time(NULL));
548
+                                "expires [%" TIME_T_INT_FMT "]\n", chi->uri.len, chi->uri.s, qvalue, sos, expires - time(NULL));
549 549
 
550 550
                         LM_DBG("packing contact information\n");
551 551
                         if ((ci = pack_ci(msg, chi, expires, 0)) == 0) {