[asterisk-commits] russell: branch 1.4 r80547 - /branches/1.4/funcs/func_timeout.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 23 14:29:45 CDT 2007


Author: russell
Date: Thu Aug 23 14:29:44 2007
New Revision: 80547

URL: http://svn.digium.com/view/asterisk?view=rev&rev=80547
Log:
Revert very broken fix for issue #10540 ... none of these values take ms so I
don't know what I was thinking

Modified:
    branches/1.4/funcs/func_timeout.c

Modified: branches/1.4/funcs/func_timeout.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/funcs/func_timeout.c?view=diff&rev=80547&r1=80546&r2=80547
==============================================================================
--- branches/1.4/funcs/func_timeout.c (original)
+++ branches/1.4/funcs/func_timeout.c Thu Aug 23 14:29:44 2007
@@ -89,7 +89,6 @@
 static int timeout_write(struct ast_channel *chan, char *cmd, char *data,
 			 const char *value)
 {
-	float f;
 	int x;
 	char timestr[64];
 	struct tm myt;
@@ -105,10 +104,9 @@
 	if (!value)
 		return -1;
 
-	f = atof(value);
-	if (f < 0)
-		f = 1.0;
-	x = (int) (f * 1000);
+	x = atoi(value);
+	if (x < 0)
+		x = 0;
 
 	switch (*data) {
 	case 'a':




More information about the asterisk-commits mailing list