diff options
-rw-r--r-- | coreutils/md5_sha1_sum.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c index 4f841f638..064340f25 100644 --- a/coreutils/md5_sha1_sum.c +++ b/coreutils/md5_sha1_sum.c | |||
@@ -2,19 +2,7 @@ | |||
2 | * Copyright (C) 2003 Glenn L. McGrath | 2 | * Copyright (C) 2003 Glenn L. McGrath |
3 | * Copyright (C) 2003-2004 Erik Andersen | 3 | * Copyright (C) 2003-2004 Erik Andersen |
4 | * | 4 | * |
5 | * This program is free software; you can redistribute it and/or modify | 5 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
18 | */ | 6 | */ |
19 | 7 | ||
20 | #include <fcntl.h> | 8 | #include <fcntl.h> |
@@ -121,6 +109,8 @@ static int hash_files(int argc, char **argv, const uint8_t hash_algo) | |||
121 | if (flags & FLAG_WARN) { | 109 | if (flags & FLAG_WARN) { |
122 | bb_error_msg("Invalid format"); | 110 | bb_error_msg("Invalid format"); |
123 | } | 111 | } |
112 | count_failed++; | ||
113 | return_value = EXIT_FAILURE; | ||
124 | free(line); | 114 | free(line); |
125 | continue; | 115 | continue; |
126 | } | 116 | } |
@@ -177,14 +167,14 @@ static int hash_files(int argc, char **argv, const uint8_t hash_algo) | |||
177 | } | 167 | } |
178 | 168 | ||
179 | #ifdef CONFIG_MD5SUM | 169 | #ifdef CONFIG_MD5SUM |
180 | extern int md5sum_main(int argc, char **argv) | 170 | int md5sum_main(int argc, char **argv) |
181 | { | 171 | { |
182 | return(hash_files(argc, argv, HASH_MD5)); | 172 | return(hash_files(argc, argv, HASH_MD5)); |
183 | } | 173 | } |
184 | #endif | 174 | #endif |
185 | 175 | ||
186 | #ifdef CONFIG_SHA1SUM | 176 | #ifdef CONFIG_SHA1SUM |
187 | extern int sha1sum_main(int argc, char **argv) | 177 | int sha1sum_main(int argc, char **argv) |
188 | { | 178 | { |
189 | return(hash_files(argc, argv, HASH_SHA1)); | 179 | return(hash_files(argc, argv, HASH_SHA1)); |
190 | } | 180 | } |