fix a couple of warnings on osx
authorRussell Bryant <russell@russellbryant.com>
Fri, 2 Sep 2005 11:39:24 +0000 (11:39 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 2 Sep 2005 11:39:24 +0000 (11:39 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6500 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils.c

diff --git a/utils.c b/utils.c
index f45226f..282c2e1 100755 (executable)
--- a/utils.c
+++ b/utils.c
@@ -563,12 +563,12 @@ static struct timeval tvfix(struct timeval a)
 {
        if (a.tv_usec >= ONE_MILLION) {
                ast_log(LOG_WARNING, "warning too large timestamp %ld.%ld\n",
 {
        if (a.tv_usec >= ONE_MILLION) {
                ast_log(LOG_WARNING, "warning too large timestamp %ld.%ld\n",
-                       a.tv_sec, a.tv_usec);
+                       a.tv_sec, (long int) a.tv_usec);
                a.tv_sec += a.tv_usec % ONE_MILLION;
                a.tv_usec %= ONE_MILLION;
        } else if (a.tv_usec < 0) {
                ast_log(LOG_WARNING, "warning negative timestamp %ld.%ld\n",
                a.tv_sec += a.tv_usec % ONE_MILLION;
                a.tv_usec %= ONE_MILLION;
        } else if (a.tv_usec < 0) {
                ast_log(LOG_WARNING, "warning negative timestamp %ld.%ld\n",
-                               a.tv_sec, a.tv_usec);
+                               a.tv_sec, (long int) a.tv_usec);
                a.tv_usec = 0;
        }
        return a;
                a.tv_usec = 0;
        }
        return a;