Module: kamailio
Branch: master
Commit: 8f5a1c20a6816e18f9f08f3b0273691dc5f8cc2c
URL:
https://github.com/kamailio/kamailio/commit/8f5a1c20a6816e18f9f08f3b0273691…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-02-09T17:16:43+01:00
dispatcher: cast to uint64_t when using time_t value
---
Modified: src/modules/dispatcher/ds_ht.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8f5a1c20a6816e18f9f08f3b0273691…
Patch:
https://github.com/kamailio/kamailio/commit/8f5a1c20a6816e18f9f08f3b0273691…
---
diff --git a/src/modules/dispatcher/ds_ht.c b/src/modules/dispatcher/ds_ht.c
index 540d0b5fdad..87eaf5e7544 100644
--- a/src/modules/dispatcher/ds_ht.c
+++ b/src/modules/dispatcher/ds_ht.c
@@ -19,6 +19,7 @@
*/
#include <stddef.h>
+#include <stdint.h>
#include <regex.h>
#include "../../core/mem/shm_mem.h"
@@ -333,8 +334,8 @@ int ds_ht_dbg(ds_ht_t *dsht)
while(it) {
LM_ERR("\tcell: %.*s\n", it->callid.len, it->callid.s);
LM_ERR("\tduid: %.*s\n", it->duid.len, it->duid.s);
- LM_ERR("\thid: %u expire: %u initexpire: %u\n", it->cellid,
- (unsigned int)it->expire, (unsigned int)it->initexpire);
+ LM_ERR("\thid: %u expire: %llu initexpire: %llu\n", it->cellid,
+ (uint64_t)it->expire, (uint64_t)it->initexpire);
LM_ERR("\tdset:%d\n", it->dset);
it = it->next;
}