aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/time.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-19 15:30:31 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-19 15:30:31 +0000
commit30f1a705ac297a9d3a02ba80d7d90161da623a7a (patch)
tree8c6773778a6e929515f667ac801c06d5d4d1ab8e /include/asterisk/time.h
parente8541d07e41310065e8337d988403d752794b1f5 (diff)
fix negative timestamp issue
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6160 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/time.h')
-rwxr-xr-xinclude/asterisk/time.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/time.h b/include/asterisk/time.h
index 82b781125..4dfeb359e 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));
}