diff options
author | Mattias Andrée <maandree@kth.se> | 2019-02-10 23:19:58 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-02-10 23:19:58 +0100 |
commit | c461a856bc3bca4b1190cf46a1d8a4f401f79b5c (patch) | |
tree | dae918632e8bfc1f3d0c23f00a23e7c2e68db4ef /libkeccak/files.c | |
parent | Add test from github issue #10 (diff) | |
download | libkeccak-c461a856bc3bca4b1190cf46a1d8a4f401f79b5c.tar.gz libkeccak-c461a856bc3bca4b1190cf46a1d8a4f401f79b5c.tar.bz2 libkeccak-c461a856bc3bca4b1190cf46a1d8a4f401f79b5c.tar.xz |
General API improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libkeccak/files.c')
-rw-r--r-- | libkeccak/files.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/libkeccak/files.c b/libkeccak/files.c index 22d12f3..14a4290 100644 --- a/libkeccak/files.c +++ b/libkeccak/files.c @@ -1,12 +1,5 @@ /* See LICENSE file for copyright and license details. */ -#include "files.h" - -#include <sys/stat.h> -#include <alloca.h> -#include <errno.h> -#include <stddef.h> -#include <unistd.h> - +#include "../common.h" /** @@ -22,9 +15,8 @@ * @return Zero on success, -1 on error */ int -libkeccak_generalised_sum_fd(int fd, libkeccak_state_t *restrict state, - const libkeccak_spec_t *restrict spec, - const char *restrict suffix, char *restrict hashsum) +libkeccak_generalised_sum_fd(int fd, libkeccak_state_t *restrict state, const libkeccak_spec_t *restrict spec, + const char *restrict suffix, void *restrict hashsum) { ssize_t got; struct stat attr; |