runmodes: fix more warnings

pull/7392/head
Victor Julien 4 years ago
parent f0479987ff
commit a535cc5a25

@ -206,9 +206,9 @@ int RunModeSetLiveCaptureAutoFp(ConfigIfaceParserFunc ConfigParser,
}
}
for (int thread = 0; thread < thread_max; thread++) {
snprintf(tname, sizeof(tname), "%s#%02d", thread_name_workers, thread + 1);
snprintf(qname, sizeof(qname), "pickup%d", thread + 1);
for (uint16_t thread = 0; thread < thread_max; thread++) {
snprintf(tname, sizeof(tname), "%s#%02u", thread_name_workers, (uint16_t)(thread + 1));
snprintf(qname, sizeof(qname), "pickup%u", (uint16_t)(thread + 1));
SCLogDebug("tname %s, qname %s", tname, qname);
@ -452,9 +452,9 @@ int RunModeSetIPSAutoFp(ConfigIPSParserFunc ConfigParser,
}
for (int thread = 0; thread < thread_max; thread++) {
snprintf(tname, sizeof(tname), "%s#%02d", thread_name_workers, thread + 1);
snprintf(tname, sizeof(tname), "%s#%02u", thread_name_workers, (uint16_t)(thread + 1));
char qname[TM_QUEUE_NAME_MAX];
snprintf(qname, sizeof(qname), "pickup%d", thread + 1);
snprintf(qname, sizeof(qname), "pickup%u", (uint16_t)(thread + 1));
SCLogDebug("tname %s, qname %s", tname, qname);

Loading…
Cancel
Save