diff options
| author | Mattias Andrée <m@maandree.se> | 2026-05-17 21:02:35 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-05-17 21:02:35 +0200 |
| commit | b5e063d63ecd3dbed1b68b1ea6961137d4f3f153 (patch) | |
| tree | fe2a848ab3208e9de8b362ba769535483472dbd6 /sum_fd.c | |
| parent | Update year (diff) | |
| download | libsha1-b5e063d63ecd3dbed1b68b1ea6961137d4f3f153.tar.gz libsha1-b5e063d63ecd3dbed1b68b1ea6961137d4f3f153.tar.bz2 libsha1-b5e063d63ecd3dbed1b68b1ea6961137d4f3f153.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'sum_fd.c')
| -rw-r--r-- | sum_fd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -18,15 +18,15 @@ libsha1_sum_fd(int fd, enum libsha1_algorithm algorithm, void *restrict hashsum) #ifndef _WIN32 if (fstat(fd, &attr) == 0 && attr.st_blksize > 0) - blksize = (size_t)(attr.st_blksize); + blksize = (size_t)attr.st_blksize; #endif #if ALLOCA_LIMIT > 0 if (blksize > (size_t)ALLOCA_LIMIT) { blksize = (size_t)ALLOCA_LIMIT; - blksize -= blksize % sizeof(((struct libsha1_state)NULL)->chunk); + blksize -= blksize % sizeof(((struct libsha1_state *)NULL)->chunk); if (!blksize) - blksize = sizeof(((struct libsha1_state)NULL)->chunk); + blksize = sizeof(((struct libsha1_state *)NULL)->chunk); } # if defined(__clang__) /* We are using a limit so it's just like declaring an array |
