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
This commit is contained in:
Luigi Rizzo
2008-05-15 10:56:29 +00:00
parent 193d16cbde
commit 18065a175d
7 changed files with 15 additions and 9 deletions

View File

@@ -437,7 +437,7 @@ void ast_sched_dump(const struct sched_context *con)
q->id,
q->callback,
q->data,
delta.tv_sec,
(long)delta.tv_sec,
(long int)delta.tv_usec);
}
ast_debug(1, "=============================================================\n");