summaryrefslogtreecommitdiff
path: root/lib/md5.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-10-17 02:59:09 +0000
committerJim Meyering <jim@meyering.net>1996-10-17 02:59:09 +0000
commite24c0713be3ad2d52d6880dc7364fd6899ec7afe (patch)
tree2d283957f8a98fb1b701cc3d5707f36331d32b8d /lib/md5.h
parent9b3498acb2e76bd7ffa2357aef89212568a516f6 (diff)
downloadcoreutils-e24c0713be3ad2d52d6880dc7364fd6899ec7afe.tar.xz
Define and use macro, PARAMS, not __P.
Diffstat (limited to 'lib/md5.h')
-rw-r--r--lib/md5.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/md5.h b/lib/md5.h
index ed38c192d..495461f87 100644
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -63,11 +63,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
# endif
#endif
-#undef __P
+#undef PARAMS
#if defined (__STDC__) && __STDC__
-#define __P(x) x
+# define PARAMS(x) x
#else
-#define __P(x) ()
+# define PARAMS(x) ()
#endif
/* Structure to save state of computation between the single steps. */
@@ -86,30 +86,30 @@ struct md5_ctx
/* Initialize structure containing state of computation.
(RFC 1321, 3.3: Step 3) */
-void md5_init_ctx __P ((struct md5_ctx *ctx));
+void md5_init_ctx PARAMS ((struct md5_ctx *ctx));
/* Starting with the result of former calls of this function (or the
initialzation function update the context for the next LEN bytes
starting at BUFFER.
It is necessary that LEN is a multiple of 64!!! */
-void md5_process_block __P ((const void *buffer, size_t len,
- struct md5_ctx *ctx));
+void md5_process_block PARAMS ((const void *buffer, size_t len,
+ struct md5_ctx *ctx));
/* Put result from CTX in first 16 bytes following RESBUF. The result is
always in little endian byte order, so that a byte-wise output yields
to the wanted ASCII representation of the message digest. */
-void *md5_read_ctx __P ((const struct md5_ctx *ctx, void *resbuf));
+void *md5_read_ctx PARAMS ((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. */
-int md5_stream __P ((FILE *stream, void *resblock));
+int md5_stream PARAMS ((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
output yields to the wanted ASCII representation of the message
digest. */
-void *md5_buffer __P ((const char *buffer, size_t len, void *resblock));
+void *md5_buffer PARAMS ((const char *buffer, size_t len, void *resblock));
#endif