[asterisk-commits] dlee: branch 12 r397673 - /branches/12/main/bucket.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 26 16:30:13 CDT 2013
Author: dlee
Date: Mon Aug 26 16:30:12 2013
New Revision: 397673
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=397673
Log:
Fixed bucket.c for systems where tv_usec is not an unsigned long.
Modified:
branches/12/main/bucket.c
Modified: branches/12/main/bucket.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/bucket.c?view=diff&rev=397673&r1=397672&r2=397673
==============================================================================
--- branches/12/main/bucket.c (original)
+++ branches/12/main/bucket.c Mon Aug 26 16:30:12 2013
@@ -901,7 +901,7 @@
static int timeval_struct2str(const void *obj, const intptr_t *args, char **buf)
{
struct timeval *field = (struct timeval *)(obj + args[0]);
- return (ast_asprintf(buf, "%lu.%06lu", field->tv_sec, field->tv_usec) < 0) ? -1 : 0;
+ return (ast_asprintf(buf, "%lu.%06lu", field->tv_sec, (unsigned long)field->tv_usec) < 0) ? -1 : 0;
}
/*! \brief Initialize bucket support */
More information about the asterisk-commits
mailing list