diff options
author | Tom Rini <trini@ti.com> | 2013-03-04 11:14:27 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-03-04 11:14:27 -0500 |
commit | 1c9f47ab2a2e9b62d08d39bfb9c4adc8f8edc5da (patch) | |
tree | fa4ee32d67f02d1c8fa80a55b9d85982cedac062 /common/cmd_sha1sum.c | |
parent | c259188b203d95e4a854e7e29b9e4472cc982f65 (diff) | |
parent | 218da0f35f4b5e5bf13d3dba6d975d4d5d65516f (diff) | |
download | u-boot-imx-1c9f47ab2a2e9b62d08d39bfb9c4adc8f8edc5da.zip u-boot-imx-1c9f47ab2a2e9b62d08d39bfb9c4adc8f8edc5da.tar.gz u-boot-imx-1c9f47ab2a2e9b62d08d39bfb9c4adc8f8edc5da.tar.bz2 |
Merge branch 'mem' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'common/cmd_sha1sum.c')
-rw-r--r-- | common/cmd_sha1sum.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/cmd_sha1sum.c b/common/cmd_sha1sum.c index fe927ab..9f08629 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 |