diff --git a/libfreshclam/libfreshclam.c b/libfreshclam/libfreshclam.c index 304d35a638..73d3f09d95 100644 --- a/libfreshclam/libfreshclam.c +++ b/libfreshclam/libfreshclam.c @@ -936,7 +936,7 @@ fc_error_t fc_download_url_database( logg(LOGG_INFO, " c. If you have checked (a) and (b), please open a ticket at\n"); logg(LOGG_INFO, " https://github.com/Cisco-Talos/clamav/issues\n"); logg(LOGG_INFO, " and we will investigate why your network is blocked.\n"); - if (0 != g_lastRay[0]) { + if (0 != g_lastRay[0]) { size_t i; logg(LOGG_INFO, " Please provide the following cf-ray id with your ticket.\n"); logg(LOGG_INFO, "\n CF-RAY=========================================================================\n"); diff --git a/libfreshclam/libfreshclam_internal.c b/libfreshclam/libfreshclam_internal.c index 806cb8f9ca..5f4e28fe25 100644 --- a/libfreshclam/libfreshclam_internal.c +++ b/libfreshclam/libfreshclam_internal.c @@ -118,7 +118,7 @@ uint32_t g_bCompressLocalDatabase = 0; freshclam_dat_v1_t *g_freshclamDat = NULL; -uint8_t g_lastRay[CFRAY_LEN+1] = {0}; +uint8_t g_lastRay[CFRAY_LEN + 1] = {0}; /** @brief Generate a Version 4 UUID according to RFC-4122 * @@ -825,7 +825,7 @@ size_t HeaderCallback(char *buffer, size_t totBytes = size * nitems; if (totBytes >= strlen(needle) + CFRAY_LEN) { if (0 == strncmp(needle, buffer, strlen(needle))) { - uint8_t ** last = (uint8_t**) userdata; + uint8_t **last = (uint8_t **)userdata; memcpy(last, &(buffer[strlen(needle)]), CFRAY_LEN); last[CFRAY_LEN] = 0; } diff --git a/libfreshclam/libfreshclam_internal.h b/libfreshclam/libfreshclam_internal.h index 7651af7aa4..b5a588a9be 100644 --- a/libfreshclam/libfreshclam_internal.h +++ b/libfreshclam/libfreshclam_internal.h @@ -64,7 +64,7 @@ extern uint32_t g_requestTimeout; extern uint32_t g_bCompressLocalDatabase; extern freshclam_dat_v1_t *g_freshclamDat; -extern uint8_t g_lastRay[CFRAY_LEN+1]; +extern uint8_t g_lastRay[CFRAY_LEN + 1]; fc_error_t load_freshclam_dat(void); fc_error_t save_freshclam_dat(void);