summaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorstderr64 <stderr64@null.net>2024-05-15 22:09:40 +0300
committerstderr64 <stderr64@null.net>2024-05-15 22:09:40 +0300
commitbcb07c7207b1194cf032ed8f0f841b3c3e57367b (patch)
tree5b06fa8a28af0311e32a9f5fd98eafeaebf8e0b1 /log.h
parent2d22f149180ba28186cf142ec30dc91c841d0328 (diff)
downloadCWebHook-master.tar.gz
CWebHook-master.tar.zst
Change long long int to int64_t and ssize_tHEADmaster
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
Diffstat (limited to 'log.h')
-rw-r--r--log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.h b/log.h
index 6fd3235..8c5e94c 100644
--- a/log.h
+++ b/log.h
@@ -4,7 +4,7 @@
int log_init( server_config_t *sc, log_file_t *lf ){
if ( strcmp((const char*)sc->log_enabled->valuestring, "no") == 0 )
return LOG_INIT_SUCCESS;
- if ( sc->log_file == NULL || (long long int)strlen(sc->log_file->valuestring) <= 0 )
+ if ( sc->log_file == NULL || (int64_t)strlen(sc->log_file->valuestring) <= 0 )
return LOG_INIT_FAILED;
lf->log_file = fopen( sc->log_file->valuestring, "a" );
if ( lf->log_file == NULL )