Skip to content

Commit 947896a

Browse files
authored
Fix configure script (after fb85dac) (ntop#1381)
Fix/disable some LGTM warnings
1 parent 7cba34a commit 947896a

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,6 @@ stamp-h1
7575
/tests/dga/dga_evaluate
7676
/tests/unit/unit
7777
/tags
78+
/rrdtool/Makefile
79+
/rrdtool/rrd_anomaly
80+
/rrdtool/rrd_similarity

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ AC_CHECK_LIB([rrd], [rrd_fetch_r], [LIBRRD=-lrrd])
110110

111111
if test "x$ac_cv_lib_rrd_rrd_fetch_r" = xyes; then :
112112
AC_DEFINE_UNQUOTED(HAVE_RRDTOOL, "1", [rrdtool is present])
113-
EXTRA_TARGETS="rrdtool"
113+
EXTRA_TARGETS="$EXTRA_TARGETS rrdtool"
114114
fi
115115

116116
ADDITIONAL_LIBS="$LIBRRD $LIBM"

example/ndpiReader.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ static char* is_unsafe_cipher(ndpi_cipher_weakness c) {
11881188
/* ********************************** */
11891189

11901190
void print_bin(FILE *fout, const char *label, struct ndpi_bin *b) {
1191-
u_int8_t i;
1191+
u_int16_t i;
11921192
const char *sep = label ? "," : ";";
11931193

11941194
ndpi_normalize_bin(b);

lgtm.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
queries:
2+
- exclude: cpp/cleartext-storage-file

src/lib/ndpi_main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3010,7 +3010,7 @@ int ndpi_add_host_risk_mask(struct ndpi_detection_module_struct *ndpi_str,
30103010
int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_str, char *rule, u_int8_t do_add) {
30113011
char *at, *proto, *elem;
30123012
ndpi_proto_defaults_t *def;
3013-
u_int16_t subprotocol_id, i;
3013+
u_int subprotocol_id, i;
30143014

30153015
at = strrchr(rule, '@');
30163016
if(at == NULL) {
@@ -3061,7 +3061,7 @@ int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_str, char *rule,
30613061
}
30623062
}
30633063

3064-
for(i = 0, def = NULL; i < (int) ndpi_str->ndpi_num_supported_protocols; i++) {
3064+
for(i = 0, def = NULL; i < ndpi_str->ndpi_num_supported_protocols; i++) {
30653065
if(ndpi_str->proto_defaults[i].protoName
30663066
&& strcasecmp(ndpi_str->proto_defaults[i].protoName, proto) == 0) {
30673067
def = &ndpi_str->proto_defaults[i];

0 commit comments

Comments
 (0)