diff options
-rw-r--r-- | crypto/digest.c | 6 | ||||
-rw-r--r-- | include/digest.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/crypto/digest.c b/crypto/digest.c index 7b34742c52..9b7b73019a 100644 --- a/crypto/digest.c +++ b/crypto/digest.c @@ -221,7 +221,7 @@ static int digest_update_interruptible(struct digest *d, const void *data, } static int digest_update_from_fd(struct digest *d, int fd, - ulong start, ulong size) + loff_t start, loff_t size) { unsigned char *buf = xmalloc(PAGE_SIZE); int ret = 0; @@ -257,7 +257,7 @@ out_free: static int digest_update_from_memory(struct digest *d, const unsigned char *buf, - ulong size) + loff_t size) { while (size) { unsigned long now = min_t(typeof(size), PAGE_SIZE, size); @@ -277,7 +277,7 @@ static int digest_update_from_memory(struct digest *d, int digest_file_window(struct digest *d, const char *filename, unsigned char *hash, const unsigned char *sig, - ulong start, ulong size) + loff_t start, loff_t size) { int fd, ret; unsigned char *buf; diff --git a/include/digest.h b/include/digest.h index a1cdbb2d7a..a87e29bd28 100644 --- a/include/digest.h +++ b/include/digest.h @@ -100,7 +100,7 @@ void digest_free(struct digest *d); int digest_file_window(struct digest *d, const char *filename, unsigned char *hash, const unsigned char *sig, - ulong start, ulong size); + loff_t start, loff_t size); int digest_file(struct digest *d, const char *filename, unsigned char *hash, const unsigned char *sig); |