aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-28 04:58:55 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-28 04:58:55 +0000
commit9579d87be4ab9b02195749c15a2112e2a4466ab4 (patch)
tree4b7a5e36c0d6f4c4269892054dbe35d415e904c4 /coreutils
parentdbcf3275ec36343f8bb2fb3faa8a4f18fb66419b (diff)
downloadbusybox-9579d87be4ab9b02195749c15a2112e2a4466ab4.tar.gz
fix FAST_FUNC fallout
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/md5_sha1_sum.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c
index c81619493..8690f4017 100644
--- a/coreutils/md5_sha1_sum.c
+++ b/coreutils/md5_sha1_sum.c
@@ -33,8 +33,8 @@ static uint8_t *hash_file(const char *filename, hash_algo_t hash_algo)
} context;
uint8_t *hash_value = NULL;
RESERVE_CONFIG_UBUFFER(in_buf, 4096);
- void (*update)(const void*, size_t, void*);
- void (*final)(void*, void*);
+ void FAST_FUNC (*update)(const void*, size_t, void*);
+ void FAST_FUNC (*final)(void*, void*);
src_fd = open_or_warn_stdin(filename);
if (src_fd < 0) {
@@ -44,13 +44,13 @@ static uint8_t *hash_file(const char *filename, hash_algo_t hash_algo)
/* figure specific hash algorithims */
if (ENABLE_MD5SUM && hash_algo==HASH_MD5) {
md5_begin(&context.md5);
- update = (void (*)(const void*, size_t, void*))md5_hash;
- final = (void (*)(void*, void*))md5_end;
+ update = (void*)md5_hash;
+ final = (void*)md5_end;
hash_len = 16;
} else if (ENABLE_SHA1SUM && hash_algo==HASH_SHA1) {
sha1_begin(&context.sha1);
- update = (void (*)(const void*, size_t, void*))sha1_hash;
- final = (void (*)(void*, void*))sha1_end;
+ update = (void*)sha1_hash;
+ final = (void*)sha1_end;
hash_len = 20;
} else {
bb_error_msg_and_die("algorithm not supported");