diff options
author | stderr64 <stderr64@null.net> | 2024-05-15 22:09:40 +0300 |
---|---|---|
committer | stderr64 <stderr64@null.net> | 2024-05-15 22:09:40 +0300 |
commit | bcb07c7207b1194cf032ed8f0f841b3c3e57367b (patch) | |
tree | 5b06fa8a28af0311e32a9f5fd98eafeaebf8e0b1 /log.h | |
parent | 2d22f149180ba28186cf142ec30dc91c841d0328 (diff) | |
download | CWebHook-master.tar.gz CWebHook-master.tar.zst |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ) |