Remove use of CONFIG_MAX_TASK_ARGS from examples/thttpd

This commit is contained in:
Gregory Nutt 2014-11-13 06:27:09 -06:00
parent eaddb9059f
commit a32e3bdb7b

View File

@ -152,12 +152,11 @@ static const char *g_ttypenames[4] =
/* Then any additional arguments */ /* Then any additional arguments */
#if CONFIG_MAX_TASK_ARGS > 2 for (i = 2; ttcb->argv[i]; i++)
for (i = 2; i <= CONFIG_MAX_TASK_ARGS && ttcb->argv[i]; i++)
{ {
printf(", %p", ttcb->argv[i]); printf(", %p", ttcb->argv[i]);
} }
#endif
printf(")\n"); printf(")\n");
} }
} }