aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sha1sum.c
diff options
context:
space:
mode:
authormjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
committermjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
commite901c15d890dbbdce4c086963cb1513653fc46b5 (patch)
treea318d0f03aa076c74b576ea45dc543a5669e8e91 /coreutils/sha1sum.c
parent40758c00616c3b2c85d83eb4afdeb04b1f65c9f1 (diff)
downloadbusybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.gz
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.bz2
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.zip
Major coreutils update.
git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/sha1sum.c')
-rw-r--r--coreutils/sha1sum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/sha1sum.c b/coreutils/sha1sum.c
index 03009f76f..d94cb4b53 100644
--- a/coreutils/sha1sum.c
+++ b/coreutils/sha1sum.c
@@ -187,7 +187,7 @@ extern int authenticate(const int argc, char **argv, void (*hash_ptr)(FILE *stre
187 break; 187 break;
188#endif 188#endif
189 default: 189 default:
190 show_usage(); 190 bb_show_usage();
191 } 191 }
192 } 192 }
193 193
@@ -204,7 +204,7 @@ extern int authenticate(const int argc, char **argv, void (*hash_ptr)(FILE *stre
204 hash_ptr(stdin, hashval); 204 hash_ptr(stdin, hashval);
205 print_hash(hash_length, hashval, NULL); 205 print_hash(hash_length, hashval, NULL);
206 } else { 206 } else {
207 FILE *stream = xfopen(argv[i], "r"); 207 FILE *stream = bb_xfopen(argv[i], "r");
208 hash_ptr(stream, hashval); 208 hash_ptr(stream, hashval);
209 fclose(stream); 209 fclose(stream);
210 print_hash(hash_length, hashval, argv[i]); 210 print_hash(hash_length, hashval, argv[i]);