From 35e279603f37aec4e8cba6a321726dfee958fc94 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Wed, 10 May 2023 12:04:08 +0200 Subject: [PATCH] cplc: use time_t field for proper storage size --- src/modules/cplc/cpl_run.h | 2 +- src/modules/cplc/cpl_switches.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/cplc/cpl_run.h b/src/modules/cplc/cpl_run.h index 6ec52beb708..f11db2a6a90 100644 --- a/src/modules/cplc/cpl_run.h +++ b/src/modules/cplc/cpl_run.h @@ -55,7 +55,7 @@ struct cpl_interpreter { str user; /* user */ str script; /* CPL script */ char *ip; /* instruction pointer */ - int recv_time; /* receiving time stamp */ + time_t recv_time; /* receiving time stamp */ struct sip_msg *msg; struct location *loc_set; /* location set */ /* pointers to the string-headers needed for switches; can point directly diff --git a/src/modules/cplc/cpl_switches.h b/src/modules/cplc/cpl_switches.h index e2d15bfbb36..19d26f7048c 100644 --- a/src/modules/cplc/cpl_switches.h +++ b/src/modules/cplc/cpl_switches.h @@ -689,8 +689,8 @@ static inline char *run_time_switch( struct cpl_interpreter *intr ) memset(&att, 0, sizeof(cpl_ac_tm_t)); memset(&trt, 0, sizeof(cpl_tmrec_t)); - LM_DBG("checking recv. time stamp <%d>\n", - intr->recv_time); + LM_DBG("checking recv. time stamp <%llu>\n", + (unsigned long long)intr->recv_time); switch (NR_OF_ATTR(intr->ip)) { case 1: p = ATTR_PTR(intr->ip);