changeset 466:b4be735c843c

(md5_stream): Update prototype. [__P]: Define macro.
author Jim Meyering <jim@meyering.net>
date Fri, 21 Jul 1995 04:48:03 +0000
parents 02fcea6c40e2
children 675e697efeda
files lib/md5.h
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -63,6 +63,13 @@
 # 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 @@
 /* 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