Module: kamailio
Branch: master
Commit: cc3ec58c1e3c203c76c59b17ccc14e24ffc6f8cf
URL:
https://github.com/kamailio/kamailio/commit/cc3ec58c1e3c203c76c59b17ccc14e2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-02-13T09:51:51+01:00
kmeix: cast to uint64_t when using time_t value
---
Modified: src/modules/kemix/kemix_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cc3ec58c1e3c203c76c59b17ccc14e2…
Patch:
https://github.com/kamailio/kamailio/commit/cc3ec58c1e3c203c76c59b17ccc14e2…
---
diff --git a/src/modules/kemix/kemix_mod.c b/src/modules/kemix/kemix_mod.c
index 80d7807740..e6bff3841c 100644
--- a/src/modules/kemix/kemix_mod.c
+++ b/src/modules/kemix/kemix_mod.c
@@ -23,6 +23,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
+#include <stdint.h>
#include <time.h>
#include "../../core/sr_module.h"
@@ -952,7 +953,7 @@ static sr_kemi_xval_t* ki_kx_get_nhuri(sip_msg_t *msg)
*/
static int ki_kx_get_timestamp(sip_msg_t *msg)
{
- return (int)time(NULL);
+ return (int)(uint64_t)time(NULL);
}
/**