]> Savannah Git Hosting - gnulib.git/commitdiff
crypto/arcfour: Use 'restrict'.
authorBruno Haible <bruno@clisp.org>
Sun, 23 Feb 2020 12:04:13 +0000 (13:04 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 23 Feb 2020 12:04:13 +0000 (13:04 +0100)
* lib/arcfour.h (arcfour_stream): Use 'restrict'.
* modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.

ChangeLog
lib/arcfour.h
modules/crypto/arcfour

index fc7190c20db982d3d29ed6e797098fdec0f712db..4da2852db31d6bb0d739f9bde6329893ed558cbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2020-02-23  Bruno Haible  <bruno@clisp.org>
 
+       crypto/arcfour: Use 'restrict'.
+       * lib/arcfour.h (arcfour_stream): Use 'restrict'.
+       * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
+
        careadlinkat: Use 'restrict'.
        * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
        * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
index b77df1a86ead07c1091a125377ea2aa89a8dc363..cc4e37d5949aa834433523b5413bf97f093bd3cf 100644 (file)
@@ -37,7 +37,7 @@ typedef struct
    before this function is called. */
 extern void
 arcfour_stream (arcfour_context * context,
-                const char *inbuf, char *outbuf, size_t length);
+                const char *inbuf, char *restrict outbuf, size_t length);
 
 /* Initialize CONTEXT using encryption KEY of KEYLEN bytes.  KEY
    should be 40 bits (5 bytes) or longer.  The KEY cannot be zero
index 43d1345bc84a65c02afb08123452b5e6c3520519..5e7736c920855748931dda53c5ccfe1641001089 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 stdint
 
 configure.ac:
+AC_REQUIRE([AC_C_RESTRICT])
 
 Makefile.am:
 lib_SOURCES += arcfour.c