[PATCH] fio: __ux -> uintx_t
authorJens Axboe <axboe@suse.de>
Mon, 5 Dec 2005 18:38:40 +0000 (19:38 +0100)
committerJens Axboe <axboe@suse.de>
Mon, 5 Dec 2005 18:38:40 +0000 (19:38 +0100)
md5.c
md5.h

diff --git a/md5.c b/md5.c
index 36850488b424c15efd01a14e886c2a6681ff7014..c65a8b092057902ba5d861fc4ef87c3cdc398002 100644 (file)
--- a/md5.c
+++ b/md5.c
@@ -5,9 +5,9 @@
 #include <asm/types.h>
 #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 b30f2cec63c2f6a6b39495acc371d976b1fd568a..9d1cf4cfb5021524aae63e8c50cbaffe3f4245ef 100644 (file)
--- a/md5.h
+++ b/md5.h
@@ -1,7 +1,7 @@
 #ifndef MD5_H
 #define MD5_H
 
-#include <asm/types.h>
+#include <stdint.h>
 
 #define MD5_DIGEST_SIZE                16
 #define MD5_HMAC_BLOCK_SIZE    64
        (w += f(x, y, z) + in, w = (w<<s | 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