From eb68948c438814b99b81adf44b674738d0b1be34 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 15 Jun 2023 10:58:57 +0200 Subject: core: Use 64 bit instead of gpgme_off_t for some internal functions. * src/conversion.c (_gpgme_string_to_off): Return an u64 value. * src/data.c (_gpgme_data_get_size_hint): Ditto. (gpgme_data_set_flag): Use u64 for io-buffer-size due to string_to_off change. * src/data.h (struct gpgme_data): Change size_hint to u64. * src/engine-gpg.c (add_input_size_hint): Replace gpgme_off_t by u64. -- GnuPG-bug-id: 6534 --- src/util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 90213b10..d3b982e7 100644 --- a/src/util.h +++ b/src/util.h @@ -35,6 +35,8 @@ #ifdef HAVE_UNISTD_H # include #endif +#include + #include "gpgme.h" @@ -143,7 +145,7 @@ int _gpgme_split_fields (char *string, char **array, int arraysize); gpgme_error_t _gpgme_strtoul_field (const char *string, unsigned long *result); /* Convert STRING into an offset value similar to atoi(). */ -gpgme_off_t _gpgme_string_to_off (const char *string); +uint64_t _gpgme_string_to_off (const char *string); /* Parse the string TIMESTAMP into a time_t. The string may either be seconds since Epoch or in the ISO 8601 format like -- cgit v1.2.3