summaryrefslogtreecommitdiff
path: root/lib/md5.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-07-21 04:48:03 +0000
committerJim Meyering <jim@meyering.net>1995-07-21 04:48:03 +0000
commite9befad118c47aa0aa1986ff43bc000393117c86 (patch)
tree3f5c266f9b1bb51ae0a5f51b35a13bbe35b1b452 /lib/md5.h
parent032abe8887ed7a081d374fca8ec0095be3baaeb7 (diff)
downloadgnulib-e9befad118c47aa0aa1986ff43bc000393117c86.tar.gz
(md5_stream): Update prototype.
[__P]: Define macro.
Diffstat (limited to 'lib/md5.h')
-rw-r--r--lib/md5.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/md5.h b/lib/md5.h
index 501b4d2333..ed38c192d2 100644
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -63,6 +63,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
# endif
#endif
+#undef __P
+#if defined (__STDC__) && __STDC__
+#define __P(x) x
+#else
+#define __P(x) ()
+#endif
+
/* Structure to save state of computation between the single steps. */
struct md5_ctx
{
@@ -97,8 +104,7 @@ void *md5_read_ctx __P ((const struct md5_ctx *ctx, void *resbuf));
/* Compute MD5 message digest for bytes read from STREAM. The
resulting message digest number will be written into the 16 bytes
beginning at RESBLOCK. */
-void *
-md5_stream __P ((FILE *stream, void *resblock));
+int md5_stream __P ((FILE *stream, void *resblock));
/* Compute MD5 message digest for LEN bytes beginning at BUFFER. The
result is always in little endian byte order, so that a byte-wise