[asterisk-commits] trunk r16886 - /trunk/cli.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Apr 1 11:18:22 MST 2006


Author: rizzo
Date: Sat Apr  1 12:18:20 2006
New Revision: 16886

URL: http://svn.digium.com/view/asterisk?rev=16886&view=rev
Log:
fix style and printf format errors in the frog command.
(it's april first i guess...)


Modified:
    trunk/cli.c

Modified: trunk/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/cli.c?rev=16886&r1=16885&r2=16886&view=diff
==============================================================================
--- trunk/cli.c (original)
+++ trunk/cli.c Sat Apr  1 12:18:20 2006
@@ -258,12 +258,13 @@
 	double warpone = 75139293848.0;
 	double warpfactor = 1.0;
 
-        if (argc > 2) return RESULT_SHOWUSAGE;
-	if ((argc > 1) && (sscanf(argv[1],"%lf",&warpfactor) != 1))
+        if (argc > 2)
+		return RESULT_SHOWUSAGE;
+	if (argc > 1 && sscanf(argv[1],"%lf",&warpfactor) != 1)
                 return RESULT_SHOWUSAGE;
 
         ast_cli(fd, "A frog in a blender with a base diameter of 3 inches going\n");
-        ast_cli(fd, "%.0lf RPM will be travelling at warp factor %lf,\n",
+        ast_cli(fd, "%.0f RPM will be travelling at warp factor %f,\n",
 		warpfactor * warpfactor * warpfactor * warpone,warpfactor);
 	ast_cli(fd,"based upon the Jacobsen Frog Corollary.\n");
 	return RESULT_SUCCESS;



More information about the asterisk-commits mailing list