Skip to content

Commit

Permalink
Fix compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
huitema committed Jan 14, 2024
1 parent f257263 commit fef3bae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion lib/ipstats.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "cbor.h"
#include "cdns.h"
#include "ipstats.h"
#include "DnsStats.h"
Expand Down Expand Up @@ -187,8 +192,8 @@ bool IPStats::LoadCborFile(char const* fileName)
}
#endif
}
#endif
return ret;
#endif
}

#if 0
Expand Down
4 changes: 2 additions & 2 deletions lib/ithimetrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ bool ithimetrics::ParseMetricFileName(const char * name, int * metric_id, int *
* '.' after day
*/
char sep_expect[4] = { '-', '-', '-', '.' };
int sep_found[4] = { 0, 0, 0, 0 };
int current = (int)char_after_sep_index;
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 Down
1 change: 0 additions & 1 deletion src/ithitools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,6 @@ int main(int argc, char ** argv)
}
else if (exec_mode == ithi_mode_ipstats)
{
bool ret = true;
IPStats ipstats;

if (optind >= argc)
Expand Down

0 comments on commit fef3bae

Please sign in to comment.