From f31f6d8cf4bda52b8ef1b1d1d280884e904429a9 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Wed, 9 Oct 2013 12:15:56 +0100 Subject: [PATCH] Clean up use of K&R style function definitions in md5.c md5_process_block / md5_read_ctx had K&R style function definitions. Clean them up to use ANSI C style like the rest of the code (including other functions in that file). Spotted by Doxygen. --- md5.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/md5.c b/md5.c index aec1921..cbc5f03 100644 --- a/md5.c +++ b/md5.c @@ -54,10 +54,7 @@ static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; It is assumed that LEN % 64 == 0. */ void -md5_process_block (buffer, len, ctx) - const void *buffer; - size_t len; - struct md5_ctx *ctx; +md5_process_block(const void *buffer, size_t len, struct md5_ctx *ctx) { uint32_t correct_words[16]; const uint32_t *words = buffer; @@ -231,9 +228,7 @@ md5_init(struct md5_ctx *ctx) IMPORTANT: On some systems it is required that RESBUF is correctly aligned for a 32 bits value. */ void -md5_read_ctx (ctx, resbuf) - const struct md5_ctx *ctx; - void *resbuf; +md5_read_ctx(const struct md5_ctx *ctx, void *resbuf) { ((uint32_t *) resbuf)[0] = SWAP (ctx->A); ((uint32_t *) resbuf)[1] = SWAP (ctx->B); -- 2.39.2