mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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 */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user