Put gethostname into the right section.
[gnulib.git] / lib / sha.h
index 2ee17f2..238b073 100644 (file)
--- a/lib/sha.h
+++ b/lib/sha.h
@@ -29,18 +29,18 @@ struct sha_ctx
    initialization function update the context for the next LEN bytes
    starting at BUFFER.
    It is necessary that LEN is a multiple of 64!!! */
-extern void sha_process_block __P ((const void *buffer, size_t len,
-                            struct sha_ctx *ctx));
+extern void sha_process_block (const void *buffer, size_t len,
+                              struct sha_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 sha_process_bytes __P((const void *buffer, size_t len,
-                                   struct sha_ctx *ctx));
+extern void sha_process_bytes (const void *buffer, size_t len,
+                              struct sha_ctx *ctx);
 
 /* Initialize structure containing state of computation. */
-extern void sha_init_ctx __P ((struct sha_ctx *ctx));
+extern void sha_init_ctx (struct sha_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
@@ -49,7 +49,7 @@ extern void sha_init_ctx __P ((struct sha_ctx *ctx));
 
    IMPORTANT: On some systems it is required that RESBUF is correctly
    aligned for a 32 bits value.  */
-extern void *sha_finish_ctx __P ((struct sha_ctx *ctx, void *resbuf));
+extern void *sha_finish_ctx (struct sha_ctx *ctx, void *resbuf);
 
 
 /* Put result from CTX in first 16 bytes following RESBUF.  The result is
@@ -58,18 +58,18 @@ extern void *sha_finish_ctx __P ((struct sha_ctx *ctx, void *resbuf));
 
    IMPORTANT: On some systems it is required that RESBUF is correctly
    aligned for a 32 bits value.  */
-extern void *sha_read_ctx __P ((const struct sha_ctx *ctx, void *resbuf));
+extern void *sha_read_ctx (const struct sha_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.  */
-extern int sha_stream __P ((FILE *stream, void *resblock));
+extern int sha_stream (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.  */
-extern void *sha_buffer __P ((const char *buffer, size_t len, void *resblock));
+extern void *sha_buffer (const char *buffer, size_t len, void *resblock);
 
 #endif