summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/cel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/cel.c b/main/cel.c
index e8bcc8734..bc16656a5 100644
--- a/main/cel.c
+++ b/main/cel.c
@@ -421,7 +421,8 @@ struct ast_channel *ast_cel_fabricate_channel_from_event(const struct ast_event
}
if (ast_strlen_zero(cel_dateformat)) {
- snprintf(timebuf, sizeof(timebuf), "%ld.%06ld", record.event_time.tv_sec, record.event_time.tv_usec);
+ snprintf(timebuf, sizeof(timebuf), "%ld.%06ld", record.event_time.tv_sec,
+ (long) record.event_time.tv_usec);
} else {
struct ast_tm tm;
ast_localtime(&record.event_time, &tm, NULL);