Skip to content

Commit

Permalink
dispatcher: cast to uint64_t when using time_t value
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Feb 9, 2023
1 parent dd6339f commit 8f5a1c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/dispatcher/ds_ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

#include <stddef.h>
#include <stdint.h>
#include <regex.h>

#include "../../core/mem/shm_mem.h"
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 8f5a1c2

Please sign in to comment.