summaryrefslogtreecommitdiffstats
path: root/commands/digest.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-12-21 14:18:57 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-02-27 20:28:07 +0100
commit33d1cc4bf2253842d9a30dc9ca38beb30dd5b5ae (patch)
tree2bb02720568d0ac934cab588cce4ee0ecd2608da /commands/digest.c
parentbb2a1ea60c94967660d6909c591f817590264826 (diff)
downloadbarebox-33d1cc4bf2253842d9a30dc9ca38beb30dd5b5ae.tar.gz
barebox-33d1cc4bf2253842d9a30dc9ca38beb30dd5b5ae.tar.xz
commands: remove struct command pointer from commands
This is unused in all commands and thus can be removed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/digest.c')
-rw-r--r--commands/digest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/digest.c b/commands/digest.c
index fbeadf9b4b..84329144c7 100644
--- a/commands/digest.c
+++ b/commands/digest.c
@@ -78,7 +78,7 @@ static int do_digest(char *algorithm, int argc, char *argv[])
#ifdef CONFIG_CMD_MD5SUM
-static int do_md5(struct command *cmdtp, int argc, char *argv[])
+static int do_md5(int argc, char *argv[])
{
return do_digest("md5", argc, argv);
}
@@ -98,7 +98,7 @@ BAREBOX_CMD_END
#ifdef CONFIG_CMD_SHA1SUM
-static int do_sha1(struct command *cmdtp, int argc, char *argv[])
+static int do_sha1(int argc, char *argv[])
{
return do_digest("sha1", argc, argv);
}
@@ -118,7 +118,7 @@ BAREBOX_CMD_END
#ifdef CONFIG_CMD_SHA224SUM
-static int do_sha224(struct command *cmdtp, int argc, char *argv[])
+static int do_sha224(int argc, char *argv[])
{
return do_digest("sha224", argc, argv);
}
@@ -138,7 +138,7 @@ BAREBOX_CMD_END
#ifdef CONFIG_CMD_SHA256SUM
-static int do_sha256(struct command *cmdtp, int argc, char *argv[])
+static int do_sha256(int argc, char *argv[])
{
return do_digest("sha256", argc, argv);
}