- typo in error-message: s/algotithm/algorithm

- whitespace cleanup
This commit is contained in:
Bernhard Reutner-Fischer 2006-05-10 07:59:32 +00:00
parent 59e46117b1
commit eba32f429b

View File

@ -1,3 +1,4 @@
/* vi: set sw=4 ts=4: */
/* /*
* Copyright (C) 2003 Glenn L. McGrath * Copyright (C) 2003 Glenn L. McGrath
* Copyright (C) 2003-2004 Erik Andersen * Copyright (C) 2003-2004 Erik Andersen
@ -55,7 +56,7 @@ static uint8_t *hash_file(const char *filename, hash_algo_t hash_algo)
return NULL; return NULL;
} }
// figure specific hash algorithims /* figure specific hash algorithims */
if (ENABLE_MD5SUM && hash_algo==HASH_MD5) { if (ENABLE_MD5SUM && hash_algo==HASH_MD5) {
md5_begin(&context.md5); md5_begin(&context.md5);
update = (void (*)(const void*, size_t, void*))md5_hash; update = (void (*)(const void*, size_t, void*))md5_hash;
@ -67,10 +68,9 @@ static uint8_t *hash_file(const char *filename, hash_algo_t hash_algo)
final = (void (*)(void*, void*))sha1_end; final = (void (*)(void*, void*))sha1_end;
hash_len = 20; hash_len = 20;
} else { } else {
bb_error_msg_and_die("algotithm not supported"); bb_error_msg_and_die("algorithm not supported");
} }
while (0 < (count = read(src_fd, in_buf, sizeof in_buf))) { while (0 < (count = read(src_fd, in_buf, sizeof in_buf))) {
update(in_buf, count, &context); update(in_buf, count, &context);
} }