diff options
author | Luca Deri <deri@ntop.org> | 2022-05-27 17:35:30 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2022-05-27 17:35:30 +0200 |
commit | 7e3d0614287bba51d881c89e75c1f9671cccd1b8 (patch) | |
tree | 194ab27d1c72ac8d65ab4fbceafcfde8f72564bf /src/lib/protocols/tftp.c | |
parent | 6d543808ade2268bbdaf325f51f60550ac21b593 (diff) |
Compilation fixes
Diffstat (limited to 'src/lib/protocols/tftp.c')
-rw-r--r-- | src/lib/protocols/tftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/tftp.c b/src/lib/protocols/tftp.c index 2bf368cbe..07f2ca07f 100644 --- a/src/lib/protocols/tftp.c +++ b/src/lib/protocols/tftp.c @@ -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]); |