Use ++var instead of var++ whenever possible

This commit is contained in:
Matteo Cypriani 2011-08-18 11:45:36 +02:00
parent 3f328e0e69
commit ac4dd87ef9
3 changed files with 5 additions and 5 deletions

View File

@ -605,7 +605,7 @@ void* monitor_requests(void *NULL_value)
request_info_ptr = request_ptr->info ; request_info_ptr = request_ptr->info ;
while (request_info_ptr != NULL) while (request_info_ptr != NULL)
{ {
request.nb_info++; ++request.nb_info ;
request_info_ptr = request_info_ptr->next ; request_info_ptr = request_info_ptr->next ;
} }
// Endianess conversions: // Endianess conversions:

View File

@ -157,7 +157,7 @@ void parse_main_options(int argc, char **argv)
// Take the optind value: // Take the optind value:
options.flood_delay = options.flood_delay =
strtoul(argv[optind], NULL, 0) ; strtoul(argv[optind], NULL, 0) ;
optind++ ; ++optind ;
} }
} }
break ; break ;
@ -185,7 +185,7 @@ void parse_main_options(int argc, char **argv)
// Take the optind value: // Take the optind value:
options.listening_port = options.listening_port =
strtoul(argv[optind], NULL, 0) ; strtoul(argv[optind], NULL, 0) ;
optind++ ; ++optind ;
} }
} }
break ; break ;

View File

@ -1058,13 +1058,13 @@ void extract_radiotap_data(const u_char *packet,
// The Radiotap header is little-endian // The Radiotap header is little-endian
rtap_presentflags = le32toh(rtap_presentflags) ; 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_fields[i] = FALSE ;
rtap_position = 8 ; // Begining of the present flags determined fields rtap_position = 8 ; // Begining of the present flags determined fields
// Test the first 15 bits of the flag field in order to check their // Test the first 15 bits of the flag field in order to check their
// presence and to copy them: // presence and to copy them:
for (i = 0 ; i < 15 ; i++) for (i = 0 ; i < 15 ; ++i)
{ {
if ((rtap_presentflags % 2) == 1) if ((rtap_presentflags % 2) == 1)
{ {