diff options
author | Bruno Haible <bruno@clisp.org> | 2020-02-23 13:15:15 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-02-23 13:15:15 +0100 |
commit | 94ff8af6bf3399c077cb907e56424d61fdea79d4 (patch) | |
tree | 2e1dcfa6d8e861b9be74fd80b9f31cb195d5e0cf /lib/md5.h | |
parent | 1fa14c798c517aae775149ebcbe5577a73515dfc (diff) | |
download | gnulib-94ff8af6bf3399c077cb907e56424d61fdea79d4.tar.gz |
crypto/md5-buffer: Use 'restrict'.
* lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
'restrict'.
* modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
Diffstat (limited to 'lib/md5.h')
-rw-r--r-- | lib/md5.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -105,13 +105,15 @@ extern void __md5_process_bytes (const void *buffer, size_t len, 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. */ -extern void *__md5_finish_ctx (struct md5_ctx *ctx, void *resbuf) __THROW; +extern void *__md5_finish_ctx (struct md5_ctx *ctx, void *restrict resbuf) + __THROW; /* 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. */ -extern void *__md5_read_ctx (const struct md5_ctx *ctx, void *resbuf) __THROW; +extern void *__md5_read_ctx (const struct md5_ctx *ctx, void *restrict resbuf) + __THROW; /* Compute MD5 message digest for LEN bytes beginning at BUFFER. The @@ -119,7 +121,7 @@ extern void *__md5_read_ctx (const struct md5_ctx *ctx, void *resbuf) __THROW; output yields to the wanted ASCII representation of the message digest. */ extern void *__md5_buffer (const char *buffer, size_t len, - void *resblock) __THROW; + void *restrict resblock) __THROW; # endif /* Compute MD5 message digest for bytes read from STREAM. |