Skip to content

Commit

Permalink
Fix various ARM32 time_t warnings (Ubuntu 22.04)
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Apr 30, 2024
1 parent 61ba2cc commit 99f7085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/cfgutils/cfgutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,8 @@ static int get_accurate_time(struct sip_msg* msg,

val.flags = PV_VAL_STR;
val.rs.s = sec_usec_buf;
val.rs.len = sprintf(sec_usec_buf, "%ld.%06ld", tv.tv_sec, tv.tv_usec);
val.rs.len = sprintf(sec_usec_buf, "%lld.%06lld",
(long long)tv.tv_sec, (long long)tv.tv_usec);
if (pv_set_value(msg, pv_sec_usec, 0, &val) != 0) {
LM_ERR("failed to set 'pv_sec_usec'\n");
return -1;
Expand Down

0 comments on commit 99f7085

Please sign in to comment.