[PATCH] poweroff: fix cmd_poweroff() arguments type

Antony Pavlov antonynpavlov at gmail.com
Fri Jun 15 06:28:19 EDT 2012


This fixes a bug introduced with:

commit d5efef69b6449edcf44f45372c42dba861c35537
Author: Antony Pavlov <antonynpavlov at gmail.com>
Date:   Wed Jun 13 23:43:07 2012 +0400

    add 'poweroff' command

    Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
    Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>

Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 commands/poweroff.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/poweroff.c b/commands/poweroff.c
index cd5542b..ebb146c 100644
--- a/commands/poweroff.c
+++ b/commands/poweroff.c
@@ -23,7 +23,7 @@
 #include <common.h>
 #include <command.h>
 
-static int cmd_poweroff(struct command *cmdtp, int argc, char *argv[])
+static int cmd_poweroff(int argc, char *argv[])
 {
 	poweroff();
 
-- 
1.7.10




More information about the barebox mailing list