aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-02 11:39:24 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-02 11:39:24 +0000
commitd976cebb0ca48306bf7c7baa52347c489dc2ea50 (patch)
treea4a81e798a9956ec2d906414e0984e15f325e7cd /utils.c
parent2b16364b05911941e1a860b30f2bdabec10b9233 (diff)
fix a couple of warnings on osx
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6500 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils.c')
-rwxr-xr-xutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index f45226f4c..282c2e18e 100755
--- 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",
- 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);
+ a.tv_sec, (long int) a.tv_usec);
a.tv_usec = 0;
}
return a;