summaryrefslogtreecommitdiffstats
path: root/commands/help.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/help.c')
-rw-r--r--commands/help.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/help.c b/commands/help.c
index f8387bd614..706b9057e9 100644
--- a/commands/help.c
+++ b/commands/help.c
@@ -28,8 +28,10 @@
* Use puts() instead of printf() to avoid printf buffer overflow
* for long help messages
*/
-static int do_help(struct command * cmdtp, int argc, char *argv[])
+static int do_help(int argc, char *argv[])
{
+ struct command *cmdtp;
+
if (argc == 1) { /* show list of commands */
for_each_command(cmdtp) {
if (!cmdtp->usage)