Compilation fixes

This commit is contained in:
Luca Deri
2022-05-27 17:35:30 +02:00
parent 6d543808ad
commit 7e3d061428
5 changed files with 242 additions and 234 deletions
+2 -2
View File
@@ -66,8 +66,8 @@ void ndpi_search_tftp(struct ndpi_detection_module_struct
{
char const * const possible_modes[] = { "netascii", "octet", "mail" };
uint8_t mode_found = 0;
for (uint8_t mode_idx = 0; mode_idx < sizeof(possible_modes) / sizeof(possible_modes[0]); ++mode_idx)
uint8_t mode_found = 0, mode_idx;
for(mode_idx = 0; mode_idx < sizeof(possible_modes) / sizeof(possible_modes[0]); ++mode_idx)
{
size_t const mode_len = strlen(possible_modes[mode_idx]);