From f5aeeebb46159048148d779c1a1278bf1110706a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 4 Nov 2014 15:05:28 +0100 Subject: forgot const qualifier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libkeccak/spec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libkeccak/spec.h b/src/libkeccak/spec.h index ace667c..d9608a6 100644 --- a/src/libkeccak/spec.h +++ b/src/libkeccak/spec.h @@ -148,7 +148,7 @@ void libkeccak_spec_rawshake(libkeccak_spec_t* restrict spec, long x, long d) * @return Zero if error free, a `LIBKECCAK_SPEC_ERROR_*` if an error was found */ static inline __attribute__((leaf, nonnull, nothrow, unused, warn_unused_result, pure)) -int libkeccak_spec_check(libkeccak_spec_t* restrict spec) +int libkeccak_spec_check(const libkeccak_spec_t* restrict spec) { long state_size = spec->capacity + spec->bitrate; if (spec->bitrate <= 0) return LIBKECCAK_SPEC_ERROR_BITRATE_NONPOSITIVE; -- cgit v1.2.3-70-g09d2