From: Russell Bryant Date: Thu, 23 Jul 2009 01:31:18 +0000 (+0000) Subject: Resolve compiler warning on mac. X-Git-Tag: 11.0.0-beta1~4453 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7928de6acecc0bb6f8e453fdda225c3ac5d2d30;p=thirdparty%2Fasterisk.git Resolve compiler warning on mac. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208193 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cel.c b/main/cel.c index e8bcc8734f..bc16656a5e 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);