diff options
author | David M. Lee <dlee@digium.com> | 2013-08-26 21:32:13 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-08-26 21:32:13 +0000 |
commit | 6c410d00d10a1b81bf7009cd10806f9638badef3 (patch) | |
tree | 7c441013765cda42721e600862b42069317210fd /main | |
parent | d647b4ae022cbce0aaee03e8ba51de013ed0ae80 (diff) |
Fixed bucket.c for systems where tv_usec is not an unsigned long.
........
Merged revisions 397673 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/bucket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/bucket.c b/main/bucket.c index fd5b091ea..3ad476528 100644 --- a/main/bucket.c +++ b/main/bucket.c @@ -901,7 +901,7 @@ static int timeval_str2struct(const struct aco_option *opt, struct ast_variable 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 */ |