1 Remove __P macro usage to fix musl build
3 __P() is used for compatibility with old K&R C compilers. With ANSI C
4 this macro has no effect.
6 This fixes a compilation error with musl libc because of undeclared
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 ===================================================================
17 /* Initialize structure containing state of computation.
18 (RFC 1321, 3.3: Step 3) */
19 -static void md5_init_ctx __P ((struct md5_ctx *ctx));
20 +static void md5_init_ctx (struct md5_ctx *ctx);
22 /* Starting with the result of former calls of this function (or the
23 initialization function update the context for the next LEN bytes
25 It is necessary that LEN is a multiple of 64!!! */
26 -static void md5_process_block __P ((const void *buffer, size_t len,
27 - struct md5_ctx *ctx));
28 +static void md5_process_block (const void *buffer, size_t len,
29 + struct md5_ctx *ctx);
31 /* Starting with the result of former calls of this function (or the
32 initialization function update the context for the next LEN bytes
34 It is NOT required that LEN is a multiple of 64. */
35 -static void md5_process_bytes __P ((const void *buffer, size_t len,
36 - struct md5_ctx *ctx));
37 +static void md5_process_bytes (const void *buffer, size_t len,
38 + struct md5_ctx *ctx);
40 /* Process the remaining bytes in the buffer and put result from CTX
41 in first 16 bytes following RESBUF. The result is always in little
44 IMPORTANT: On some systems it is required that RESBUF is correctly
45 aligned for a 32 bits value. */
46 -static void *md5_finish_ctx __P ((struct md5_ctx *ctx, void *resbuf));
47 +static void *md5_finish_ctx (struct md5_ctx *ctx, void *resbuf);
49 //----------------------------------------------------------------------------
50 //--------end of md5.h