aboutsummaryrefslogtreecommitdiffstats
path: root/cel
diff options
context:
space:
mode:
Diffstat (limited to 'cel')
-rw-r--r--cel/cel_pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cel/cel_pgsql.c b/cel/cel_pgsql.c
index cdb1d2a16..17654875c 100644
--- a/cel/cel_pgsql.c
+++ b/cel/cel_pgsql.c
@@ -166,7 +166,7 @@ static void pgsql_log(const struct ast_event *event, void *userdata)
if (strcmp(cur->name, "eventtime") == 0) {
if (strncmp(cur->type, "int", 3) == 0) {
LENGTHEN_BUF2(13);
- ast_str_append(&sql2, 0, "%s%ld", SEP, record.event_time.tv_sec);
+ ast_str_append(&sql2, 0, "%s%ld", SEP, (long) record.event_time.tv_sec);
} else if (strncmp(cur->type, "float", 5) == 0) {
LENGTHEN_BUF2(31);
ast_str_append(&sql2, 0, "%s%f",