Module: kamailio
Branch: master
Commit: 88a1340f0a9ec3408a61625e3621be82a4975940
URL:
https://github.com/kamailio/kamailio/commit/88a1340f0a9ec3408a61625e3621be8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-05-10T11:49:12+02:00
cnxcc: cast time_t to get rid of newer compiler warnings
---
Modified: src/modules/cnxcc/cnxcc.h
---
Diff:
https://github.com/kamailio/kamailio/commit/88a1340f0a9ec3408a61625e3621be8…
Patch:
https://github.com/kamailio/kamailio/commit/88a1340f0a9ec3408a61625e3621be8…
---
diff --git a/src/modules/cnxcc/cnxcc.h b/src/modules/cnxcc/cnxcc.h
index 8c73dde2c9..e4ce5e2621 100644
--- a/src/modules/cnxcc/cnxcc.h
+++ b/src/modules/cnxcc/cnxcc.h
@@ -33,7 +33,7 @@
static inline unsigned int get_current_timestamp()
{
- return time(NULL);
+ return (unsigned int)(unsigned long long)time(NULL);
}
static inline int timestamp2isodt(str *dest, unsigned int timestamp)