From 76c7df78e8fb550c483e738bcb0c2385a0739347 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 5 Dec 2005 19:38:40 +0100 Subject: [PATCH] [PATCH] fio: __ux -> uintx_t --- md5.c | 8 ++++---- md5.h | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/md5.c b/md5.c index 3685048..c65a8b0 100644 --- a/md5.c +++ b/md5.c @@ -5,9 +5,9 @@ #include #include "md5.h" -static void md5_transform(__u32 *hash, __u32 const *in) +static void md5_transform(uint32_t *hash, uint32_t const *in) { - __u32 a, b, c, d; + uint32_t a, b, c, d; a = hash[0]; b = hash[1]; @@ -88,9 +88,9 @@ static void md5_transform(__u32 *hash, __u32 const *in) hash[3] += d; } -void md5_update(struct md5_ctx *mctx, const __u8 *data, unsigned int len) +void md5_update(struct md5_ctx *mctx, const uint8_t *data, unsigned int len) { - const __u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); + const uint32_t avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); mctx->byte_count += len; diff --git a/md5.h b/md5.h index b30f2ce..9d1cf4c 100644 --- a/md5.h +++ b/md5.h @@ -1,7 +1,7 @@ #ifndef MD5_H #define MD5_H -#include +#include #define MD5_DIGEST_SIZE 16 #define MD5_HMAC_BLOCK_SIZE 64 @@ -17,11 +17,11 @@ (w += f(x, y, z) + in, w = (w<>(32-s)) + x) struct md5_ctx { - __u32 hash[MD5_HASH_WORDS]; - __u32 block[MD5_BLOCK_WORDS]; - __u64 byte_count; + uint32_t hash[MD5_HASH_WORDS]; + uint32_t block[MD5_BLOCK_WORDS]; + uint64_t byte_count; }; -extern void md5_update(struct md5_ctx *, const __u8 *, unsigned int); +extern void md5_update(struct md5_ctx *, const uint8_t *, unsigned int); #endif -- 2.25.1