[Asterisk-cvs] asterisk/include/asterisk time.h,1.4,1.5
russell at lists.digium.com
russell at lists.digium.com
Tue Jul 19 11:23:06 CDT 2005
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv17202/include/asterisk
Modified Files:
time.h
Log Message:
fix negative timestamp issue
Index: time.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/time.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- time.h 15 Jul 2005 23:00:47 -0000 1.4
+++ time.h 19 Jul 2005 15:30:31 -0000 1.5
@@ -104,7 +104,7 @@
)
#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 @@
* 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));
}
More information about the svn-commits
mailing list