From: Russell Bryant Date: Tue, 19 Jul 2005 15:30:31 +0000 (+0000) Subject: fix negative timestamp issue X-Git-Tag: 1.2.0-beta1~247 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de905a632a9e30b2a0d534e85cc5dae5b5de4afa;p=thirdparty%2Fasterisk.git fix negative timestamp issue git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6160 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/time.h b/include/asterisk/time.h index 82b781125d..4dfeb359eb 100755 --- a/include/asterisk/time.h +++ b/include/asterisk/time.h @@ -104,7 +104,7 @@ struct timeval ast_tv(int sec, int usec), ) #endif AST_INLINE_API( -struct timeval ast_tv(int sec, int usec), +struct timeval ast_tv(time_t sec, suseconds_t usec), { struct timeval t; t.tv_sec = sec; @@ -119,7 +119,7 @@ struct timeval ast_tv(int sec, int usec), * in the form ast_samp2tv(milliseconds, 1000) */ AST_INLINE_API( -struct timeval ast_samp2tv(long _nsamp, long _rate), +struct timeval ast_samp2tv(unsigned int _nsamp, unsigned int _rate), { return ast_tv(_nsamp / _rate, (_nsamp % _rate) * (1000000 / _rate)); }