summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2005-12-05 19:38:40 +0100
committerJens Axboe <axboe@suse.de>2005-12-05 19:38:40 +0100
commit76c7df78e8fb550c483e738bcb0c2385a0739347 (patch)
treee74594952543c486e8c209a2f5761b661158bf4a
parentf5087211ef52c9c9c9cf9fb45b654878ec9278bd (diff)
[PATCH] fio: __ux -> uintx_t
-rw-r--r--md5.c8
-rw-r--r--md5.h10
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 <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 b30f2ce..9d1cf4c 100644
--- 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
@@ -17,11 +17,11 @@
(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