diff --git a/owlps-aggregator/owlps-aggregatord.c b/owlps-aggregator/owlps-aggregatord.c index 98a12b2..7047e3f 100644 --- a/owlps-aggregator/owlps-aggregatord.c +++ b/owlps-aggregator/owlps-aggregatord.c @@ -605,7 +605,7 @@ void* monitor_requests(void *NULL_value) request_info_ptr = request_ptr->info ; while (request_info_ptr != NULL) { - request.nb_info++; + ++request.nb_info ; request_info_ptr = request_info_ptr->next ; } // Endianess conversions: diff --git a/owlps-client/owlps-client.c b/owlps-client/owlps-client.c index 173830b..2fc95d0 100644 --- a/owlps-client/owlps-client.c +++ b/owlps-client/owlps-client.c @@ -157,7 +157,7 @@ void parse_main_options(int argc, char **argv) // Take the optind value: options.flood_delay = strtoul(argv[optind], NULL, 0) ; - optind++ ; + ++optind ; } } break ; @@ -185,7 +185,7 @@ void parse_main_options(int argc, char **argv) // Take the optind value: options.listening_port = strtoul(argv[optind], NULL, 0) ; - optind++ ; + ++optind ; } } break ; diff --git a/owlps-listener/owlps-listenerd.c b/owlps-listener/owlps-listenerd.c index a5f8dd4..56e0033 100644 --- a/owlps-listener/owlps-listenerd.c +++ b/owlps-listener/owlps-listenerd.c @@ -1058,13 +1058,13 @@ void extract_radiotap_data(const u_char *packet, // The Radiotap header is little-endian rtap_presentflags = le32toh(rtap_presentflags) ; - for (i = 0 ; i < 15 ; i++) // Initialise present flags structure + for (i = 0 ; i < 15 ; ++i) // Initialise present flags structure rtap_fields[i] = FALSE ; rtap_position = 8 ; // Begining of the present flags determined fields // Test the first 15 bits of the flag field in order to check their // presence and to copy them: - for (i = 0 ; i < 15 ; i++) + for (i = 0 ; i < 15 ; ++i) { if ((rtap_presentflags % 2) == 1) {