diff options
author | Luigi Rizzo <rizzo@icir.org> | 2008-05-15 10:56:29 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2008-05-15 10:56:29 +0000 |
commit | 18065a175d5012a4f1033e8c05c064007494ed3c (patch) | |
tree | fd6541cd8a4854ac1626ebbcb1eb20202e358260 /main/manager.c | |
parent | 193d16cbde6e638c15490fc9a38dd03428c2ab12 (diff) |
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
Diffstat (limited to 'main/manager.c')
-rw-r--r-- | main/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c index 2df5e8164..9ad8bd8ca 100644 --- a/main/manager.c +++ b/main/manager.c @@ -3105,7 +3105,7 @@ int __manager_event(int category, const char *event, now = ast_tvnow(); ast_str_append(&buf, 0, "Timestamp: %ld.%06lu\r\n", - now.tv_sec, (unsigned long) now.tv_usec); + (long)now.tv_sec, (unsigned long) now.tv_usec); } if (manager_debug) { static int seq; |