summaryrefslogtreecommitdiffstats
path: root/dvdread/md5.h
diff options
context:
space:
mode:
Diffstat (limited to 'dvdread/md5.h')
-rw-r--r--dvdread/md5.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/dvdread/md5.h b/dvdread/md5.h
index 3b7dea1699..345361a8f2 100644
--- a/dvdread/md5.h
+++ b/dvdread/md5.h
@@ -1,3 +1,4 @@
+/* -*- c-basic-offset: 2; indent-tabs-mode: nil -*- */
/* md5.h - Declaration of functions and data types used for MD5 sum
computing library functions.
Copyright (C) 1995, 1996, 1999 Free Software Foundation, Inc.
@@ -54,17 +55,17 @@ typedef u_int32_t md5_uint32;
# endif
# if UINT_MAX == UINT_MAX_32_BITS
- typedef unsigned int md5_uint32;
+typedef unsigned int md5_uint32;
# else
# if USHRT_MAX == UINT_MAX_32_BITS
- typedef unsigned short md5_uint32;
+typedef unsigned short md5_uint32;
# else
# if ULONG_MAX == UINT_MAX_32_BITS
- typedef unsigned long md5_uint32;
+typedef unsigned long md5_uint32;
# else
- /* The following line is intended to evoke an error.
- Using #error is not portable enough. */
- "Cannot determine unsigned 32-bit data type."
+/* The following line is intended to evoke an error.
+ Using #error is not portable enough. */
+"Cannot determine unsigned 32-bit data type."
# endif
# endif
# endif
@@ -72,9 +73,9 @@ typedef u_int32_t md5_uint32;
#undef __P
#if defined (__STDC__) && __STDC__
-#define __P(x) x
+#define __P(x) x
#else
-#define __P(x) ()
+#define __P(x) ()
#endif
/* Structure to save state of computation between the single steps. */
@@ -104,14 +105,14 @@ extern void md5_init_ctx __P ((struct md5_ctx *ctx));
starting at BUFFER.
It is necessary that LEN is a multiple of 64!!! */
extern void md5_process_block __P ((const void *buffer, size_t len,
- struct md5_ctx *ctx));
+ struct md5_ctx *ctx));
/* Starting with the result of former calls of this function (or the
initialization function update the context for the next LEN bytes
starting at BUFFER.
It is NOT required that LEN is a multiple of 64. */
extern void md5_process_bytes __P ((const void *buffer, size_t len,
- struct md5_ctx *ctx));
+ struct md5_ctx *ctx));
/* Process the remaining bytes in the buffer and put result from CTX
in first 16 bytes following RESBUF. The result is always in little
@@ -150,8 +151,8 @@ static inline md5_uint32
rol(md5_uint32 x, int n)
{
__asm__("roll %%cl,%0"
- :"=r" (x)
- :"0" (x),"c" (n));
+ :"=r" (x)
+ :"0" (x),"c" (n));
return x;
}
#else