Module: kamailio
Branch: master
Commit: f301ca9cdcc044dd05e9d82139e1db368be6dc5c
URL:
https://github.com/kamailio/kamailio/commit/f301ca9cdcc044dd05e9d82139e1db3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-02-15T09:33:56+01:00
nat_traversal: cast to uint64_t when using time_t value
---
Modified: src/modules/nat_traversal/nat_traversal.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f301ca9cdcc044dd05e9d82139e1db3…
Patch:
https://github.com/kamailio/kamailio/commit/f301ca9cdcc044dd05e9d82139e1db3…
---
diff --git a/src/modules/nat_traversal/nat_traversal.c
b/src/modules/nat_traversal/nat_traversal.c
index c5cf7fa15b..d659aced45 100644
--- a/src/modules/nat_traversal/nat_traversal.c
+++ b/src/modules/nat_traversal/nat_traversal.c
@@ -39,6 +39,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
+#include <stdint.h>
#include <ctype.h>
#include <errno.h>
#include <time.h>
@@ -922,7 +923,7 @@ static time_t get_register_expire(
}
}
- LM_DBG("maximum expire for all contacts: %u\n", (unsigned)expire);
+ LM_DBG("maximum expire for all contacts: %llu\n", (uint64_t)expire);
return (expire ? expire + now : 0);
}