summaryrefslogtreecommitdiff
path: root/common/cmd_sha1sum.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_sha1sum.c')
-rw-r--r--common/cmd_sha1sum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/cmd_sha1sum.c b/common/cmd_sha1sum.c
index fe927ab248f..9f08629b878 100644
--- a/common/cmd_sha1sum.c
+++ b/common/cmd_sha1sum.c
@@ -31,7 +31,7 @@
int do_sha1sum(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
- int verify = 0;
+ int flags = HASH_FLAG_ENV;
int ac;
char * const *av;
@@ -42,13 +42,13 @@ int do_sha1sum(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
ac = argc - 1;
#ifdef CONFIG_SHA1SUM_VERIFY
if (strcmp(*av, "-v") == 0) {
- verify = 1;
+ flags |= HASH_FLAG_VERIFY;
av++;
ac--;
}
#endif
- return hash_command("sha1", verify, cmdtp, flag, ac, av);
+ return hash_command("sha1", flags, cmdtp, flag, ac, av);
}
#ifdef CONFIG_SHA1SUM_VERIFY