Skip to content
Snippets Groups Projects
Commit defd50c6 authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Fix formatting of the frog code

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent c1d5485f
No related merge requests found
......@@ -258,15 +258,15 @@ static int handle_frog(int fd, int argc, char *argv[])
double warpone = 75139293848.0;
double warpfactor = 1.0;
if (argc > 2)
if (argc > 2)
return RESULT_SHOWUSAGE;
if (argc > 1 && sscanf(argv[1], "%lf", &warpfactor) != 1)
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, "%.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");
ast_cli(fd, "A frog in a blender with a base diameter of 3 inches going\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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment