diff --git a/nse_libssh2.cc b/nse_libssh2.cc index 2c1aa31f3..4ac23be70 100644 --- a/nse_libssh2.cc +++ b/nse_libssh2.cc @@ -1,5 +1,5 @@ /* -* Binding for the libssh2 library. Note that there is not a one-to-one correspondance +* Binding for the libssh2 library. Note that there is not a one-to-one correspondence * between functions in libssh2 and the binding. * Currently, during the ssh2 handshake, a call to nsock.receive may result in an EOF * error. This appears to only occur when stressing the ssh server (ie during a brute diff --git a/osscan2.cc b/osscan2.cc index f2ceadabb..6095f9d68 100644 --- a/osscan2.cc +++ b/osscan2.cc @@ -296,7 +296,7 @@ int get_diffs(u32 *ipid_diffs, int numSamples, const u32 *ipids, int islocalhost } -/* Indentify the ipid sequence for 32-bit IPID values (IPv6) */ +/* Identify the ipid sequence for 32-bit IPID values (IPv6) */ int get_ipid_sequence_32(int numSamples, const u32 *ipids, int islocalhost) { int ipid_seq = IPID_SEQ_UNKNOWN; u32 ipid_diffs[32]; @@ -310,7 +310,7 @@ int get_ipid_sequence_32(int numSamples, const u32 *ipids, int islocalhost) { } } -/* Indentify the ipid sequence for 16-bit IPID values (IPv4) */ +/* Identify the ipid sequence for 16-bit IPID values (IPv4) */ int get_ipid_sequence_16(int numSamples, const u32 *ipids, int islocalhost) { int i; int ipid_seq = IPID_SEQ_UNKNOWN; diff --git a/scan_engine.cc b/scan_engine.cc index 0e96663f2..1d5bcecd2 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -265,7 +265,7 @@ GroupScanStats::GroupScanStats(UltraScanInfo *UltraSI) { USI = UltraSI; init_ultra_timing_vals(&timing, TIMING_GROUP, USI->numIncompleteHosts(), &(USI->perf), &USI->now); initialize_timeout_info(&to); - /* Default timout should be much lower for arp */ + /* Default timeout should be much lower for arp */ if (USI->ping_scan_arp) to.timeout = box(o.minRttTimeout(), o.initialRttTimeout(), INITIAL_ARP_RTT_TIMEOUT) * 1000; num_probes_active = 0; diff --git a/targets.cc b/targets.cc index 16659f391..24f39de4a 100644 --- a/targets.cc +++ b/targets.cc @@ -91,7 +91,7 @@ static void arpping(Target *hostbatch[], int num_hosts) { int targetno; targets.reserve(num_hosts); - /* Default timout should be much lower for arp */ + /* Default timeout should be much lower for arp */ int default_to = box(o.minRttTimeout(), o.initialRttTimeout(), INITIAL_ARP_RTT_TIMEOUT) * 1000; for (targetno = 0; targetno < num_hosts; targetno++) { initialize_timeout_info(&hostbatch[targetno]->to); diff --git a/utils.h b/utils.h index b0af43c10..d74fc1318 100644 --- a/utils.h +++ b/utils.h @@ -70,12 +70,12 @@ #include "nbase.h" #include -/* Arithmatic difference modulo 2^32 */ +/* Arithmetic difference modulo 2^32 */ #ifndef MOD_DIFF #define MOD_DIFF(a,b) ((u32) (MIN((u32)(a) - (u32 ) (b), (u32 )(b) - (u32) (a)))) #endif -/* Arithmatic difference modulo 2^16 */ +/* Arithmetic difference modulo 2^16 */ #ifndef MOD_DIFF_USHORT #define MOD_DIFF_USHORT(a,b) ((MIN((unsigned short)((unsigned short)(a) - (unsigned short ) (b)), (unsigned short) ((unsigned short )(b) - (unsigned short) (a))))) #endif