From 18065a175d5012a4f1033e8c05c064007494ed3c Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Thu, 15 May 2008 10:56:29 +0000 Subject: Use casts or intermediate variables to remove a number of platform/compiler-dependent warnings when handing struct timeval fields, both reading and printing them. It is a lost battle to handle the different ways struct timeval is handled on the various platforms and compilers, so try to be pragmatic and go through int/long which are universally supported. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116557 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/features.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main/features.c') diff --git a/main/features.c b/main/features.c index 0b8797fcc..333b5a0f2 100644 --- a/main/features.c +++ b/main/features.c @@ -3565,7 +3565,8 @@ static char *handle_parkedcalls(struct ast_cli_entry *e, int cmd, struct ast_cli AST_LIST_TRAVERSE(&curlot->parkings, cur, list) { ast_cli(a->fd, "%-10.10s %25s (%-15s %-12s %-4d) %6lds\n" ,cur->parkingexten, cur->chan->name, cur->context, cur->exten - ,cur->priority, cur->start.tv_sec + (cur->parkingtime/1000) - time(NULL)); + ,cur->priority, + (long)(cur->start.tv_sec + (cur->parkingtime/1000) - time(NULL)) ); numparked++; numparked += lotparked; } -- cgit v1.2.3