diff options
Diffstat (limited to 'load_webhooks.h')
-rw-r--r-- | load_webhooks.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); |