Skip to content

Commit

Permalink
Fix more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
huitema committed Jan 14, 2024
1 parent fef3bae commit d891320
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ ADD_EXECUTABLE(ithitest
lib/ComputeM34.cpp
lib/ComputeM6.cpp
lib/DnsStats.cpp
lib/ipstats.cpp
lib/ithimetrics.cpp
lib/ithipublisher.cpp
lib/ithiutil.cpp
Expand Down
2 changes: 0 additions & 2 deletions lib/ithimetrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,6 @@ bool ithimetrics::ParseMetricFileName(const char * name, int * metric_id, int *
* '.' after day
*/
char sep_expect[4] = { '-', '-', '-', '.' };
size_t sep_found[4] = { 0, 0, 0, 0 };
size_t current = char_after_sep_index;
int nb_found = 0;
int current_val = 0;
Expand All @@ -570,7 +569,6 @@ bool ithimetrics::ParseMetricFileName(const char * name, int * metric_id, int *
while (nb_found < 4 && current < name_len) {
if (name[current] == sep_expect[nb_found]) {
val[nb_found] = current_val;
sep_found[nb_found] = current;
current_val = 0;
nb_found++;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ithipublisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ bool ithipublisher::PublishDataM10(FILE* F)
char const* sub_met_name[5] = { "allopnrvrs", "samecc", "diffcc", "svc", "count" };
/* Open the ccdata element */
ret &= fprintf(F, "\"ccdata\":[") > 0;
for (int i = 0; ret && i < line_list.size(); i++) {
for (size_t i = 0; ret && i < line_list.size(); i++) {
if (line_list[i]->year != last_year || line_list[i]->month != last_month) {
continue;
}
Expand Down

0 comments on commit d891320

Please sign in to comment.