aboutsummaryrefslogtreecommitdiffstats
path: root/sum_fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sum_fd.c')
-rw-r--r--sum_fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sum_fd.c b/sum_fd.c
index 381a634..35d4121 100644
--- a/sum_fd.c
+++ b/sum_fd.c
@@ -20,7 +20,7 @@ libsha2_sum_fd(int fd, enum libsha2_algorithm algorithm, char *restrict hashsum)
size_t blksize = 4096;
char *restrict chunk;
- if (libsha2_state_initialise(&state, algorithm) < 0)
+ if (libsha2_init(&state, algorithm) < 0)
return -1;
if (fstat(fd, &attr) == 0 && attr.st_blksize > 0)