1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 05:39:01 +00:00

Got rid of (unnecessary) spaces in blank lines in *.cc and *.h files.

sed -i 's/^\s*$//'
This commit is contained in:
jay
2014-06-19 11:36:10 +00:00
parent ec9074f718
commit f5e438b966
34 changed files with 136 additions and 136 deletions

View File

@@ -189,7 +189,7 @@ int ArgParser::parseArguments(int argc, char *argv[]) {
{"arp-reply", no_argument, 0, 0},
{"rarp-request", no_argument, 0, 0},
{"rarp-reply", no_argument, 0, 0},
/* TCP/UDP */
{"source-port", required_argument, 0, 'g'},
{"dest-port", required_argument, 0, 'p'},
@@ -300,7 +300,7 @@ int ArgParser::parseArguments(int argc, char *argv[]) {
{"nsock-engine", required_argument, 0, 0},
{"no-capture", no_argument, 0, 'N'},
{"hide-sent", no_argument, 0, 'H'},
/* Output */
{"verbose", optional_argument, 0, 'v'},
{"reduce-verbosity", optional_argument, 0, 'q'},
@@ -352,7 +352,7 @@ int ArgParser::parseArguments(int argc, char *argv[]) {
} else if (optcmp(long_options[option_index].name, "traceroute") == 0 ||
optcmp(long_options[option_index].name, "tr") == 0) {
o.enableTraceroute();
/* Now shortcuts that we support but that are not actual modes */
} else if (optcmp(long_options[option_index].name, "arp-request") == 0) {
if( o.issetMode() && o.getMode()!=ARP)
@@ -517,7 +517,7 @@ int ArgParser::parseArguments(int argc, char *argv[]) {
nping_fatal(QT_3, "Invalid TCP flag supplied (%c). If you want to specify flags using a number you must add prefix \"0x\"", optarg[f]);
else
nping_fatal(QT_3, "Invalid TCP flag supplied: %c", optarg[f]);
}
}
}
@@ -833,7 +833,7 @@ int ArgParser::parseArguments(int argc, char *argv[]) {
nping_fatal(QT_3,"IPv6 Flow Label must be a number between 0 and 1048575");
}
/* PACKET PAYLOAD OPTIONS ***************************************************/
/* Hexadecimal payload specification */
} else if (optcmp(long_options[option_index].name, "data") == 0 ){
@@ -977,7 +977,7 @@ int ArgParser::parseArguments(int argc, char *argv[]) {
case '4': /* IPv4 */
o.setIPVersion(IP_VERSION_4);
break; /* case '4': */
case '6': /* IPv6 */
o.setIPVersion(IP_VERSION_6);
break; /* case '6': */
@@ -1049,7 +1049,7 @@ int ArgParser::parseArguments(int argc, char *argv[]) {
printUsage();
exit(1);
break; /* case 'h': */
case 'h': /* Help */
printUsage();
exit(0);
@@ -1138,7 +1138,7 @@ int ArgParser::parseArguments(int argc, char *argv[]) {
o.increaseVerbosity();
}
break; /* case 'v': */
case 'q': /* Reduce verbosity */
if (optarg){
if (isdigit(optarg[0])){
@@ -1835,12 +1835,12 @@ int ArgParser::atoEtherType(char *opt, u16 *type){
int ArgParser::parseICMPTimestamp(char *optarg, u32 *dst){
long diff=0;
if(optarg==NULL || dst==NULL)
nping_fatal(QT_3, "parseICMPTimestamp(): NULL pointer supplied.");
if( meansRandom(optarg) ){
while( (*dst=get_random_u32()) == 0);
}
@@ -1875,6 +1875,6 @@ long diff=0;
else
*dst=diff;
}
return OP_SUCCESS;
} /* End of parseICMPTimestamp() */