From bcb07c7207b1194cf032ed8f0f841b3c3e57367b Mon Sep 17 00:00:00 2001 From: stderr64 Date: Wed, 15 May 2024 22:09:40 +0300 Subject: Change long long int to int64_t and ssize_t Because long long int is bad idea, using int64_t and ssize_t it can at least be expected that the max and minimum values are for each --- load_webhooks.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'load_webhooks.h') diff --git a/load_webhooks.h b/load_webhooks.h index 5c3a60b..816e9ba 100644 --- a/load_webhooks.h +++ b/load_webhooks.h @@ -25,7 +25,7 @@ int load_webhooks( char *wh_file_name, webhooks_data_t *wdt ){ fclose( whconf ); return WH_LOAD_FAILED; } - long long int wh_file_size = (long long int)ftell( whconf ); + int64_t wh_file_size = (int64_t)ftell( whconf ); if ( wh_file_size <= 0 ){ wh_file_size = 0; fclose( whconf ); @@ -38,7 +38,7 @@ int load_webhooks( char *wh_file_name, webhooks_data_t *wdt ){ fclose( whconf ); return WH_LOAD_FAILED; } - if ( (long long int)fread(wdt->webhooks_config, sizeof(char), (size_t)(wh_file_size * sizeof(char)), whconf) == (long long int)-1 ){ + if ( (int64_t)fread(wdt->webhooks_config, sizeof(char), (size_t)(wh_file_size * sizeof(char)), whconf) == (int64_t)-1 ){ wh_file_size = 0; free( wdt->webhooks_config ); fclose( whconf ); -- cgit v1.2.3-86-g962b