Skip to content

Commit

Permalink
spellcheck patch
Browse files Browse the repository at this point in the history
  • Loading branch information
fyodor committed Sep 5, 2006
1 parent c5e658c commit 10ffae4
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 22 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Nmap Changelog ($Id$); -*-text-*-
o Applied some small internal cleanup patches by Kris Katterjohn.

4.20ALPHA6

Expand Down
2 changes: 1 addition & 1 deletion HACKING
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ to track down and patch a problem, bug reports are always welcome.
Hackers interested in something more major, such as a new feature, are
encouraged to send a mail describing their plans to
nmap-dev@insecure.org . This is a good way to solicit feedback on
your proposals. List members or often very willing to help. You
your proposals. List members are often very willing to help. You
might want to subscribe to that mailing list as well -- send a blank
email to nmap-dev-subscribe@insecure.org . While you are at it, you
might also want to subscribe to nmap-hackers via the same mechanism.
Expand Down
2 changes: 1 addition & 1 deletion docs/nmap.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
.TH "NMAP" "1" "08/31/2006" "" "Nmap Reference Guide"
.TH "NMAP" "1" "09/02/2006" "" "Nmap Reference Guide"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
Expand Down
2 changes: 1 addition & 1 deletion docs/nmap.usage.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Nmap 4.20ALPHA5 ( http://insecure.org/nmap/ )
Nmap 4.20ALPHA6 ( http://Insecure.Org )
Usage: nmap [Scan Type(s)] [Options] {target specification}
TARGET SPECIFICATION:
Can pass hostnames, IP addresses, networks, etc.
Expand Down
2 changes: 1 addition & 1 deletion idle_scan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* completely blind scanning (eg no packets sent to the target from your *
* own IP address) and can also be used to penetrate firewalls and scope *
* out router ACLs. This is one of the "advanced" scans meant for *
* epxerienced Nmap users. *
* experienced Nmap users. *
* *
***********************IMPORTANT NMAP LICENSE TERMS************************
* *
Expand Down
2 changes: 1 addition & 1 deletion idle_scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* completely blind scanning (eg no packets sent to the target from your *
* own IP address) and can also be used to penetrate firewalls and scope *
* out router ACLs. This is one of the "advanced" scans meant for *
* epxerienced Nmap users. *
* experienced Nmap users. *
* *
***********************IMPORTANT NMAP LICENSE TERMS************************
* *
Expand Down
6 changes: 0 additions & 6 deletions osscan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -959,13 +959,7 @@ static FingerPrint *get_fingerprint(Target *target, struct seq_info *si) {
/* printf("The sequence sum is %e\n", seq_inc_sum);*/
seq_inc_sum /= (si->responses - 1);

/* Some versions of Linux libc seem to have broken pow ... so we
avoid it */
#ifdef LINUX
si->index = (unsigned int) (0.5 + sqrt(seq_inc_sum));
#else
si->index = (unsigned int) (0.5 + pow(seq_inc_sum, 0.5));
#endif

/* printf("The sequence index is %d\n", si->index);*/
if (si->index < 75) {
Expand Down
4 changes: 0 additions & 4 deletions osscan2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1735,11 +1735,7 @@ void HostOsScan::makeTSeqFP(HostOsScanStats *hss) {
seq_stddev /= hss->si.responses - 2;

/* Next we need to take the square root of this value */
#ifdef LINUX
seq_stddev = (unsigned int) (0.5 + sqrt(seq_stddev));
#else
seq_stddev = (unsigned int) (0.5 + pow(seq_stddev, 0.5));
#endif

/* Finally we take a binary logarithm, multiply by 8, and round
to get the final result */
Expand Down
2 changes: 1 addition & 1 deletion protocols.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ struct protoent *nmap_getprotbynum(int num) {

}

/* Be default we do all prots 0-255. */
/* By default we do all prots 0-255. */
struct scan_lists *getdefaultprots(void) {
int protindex = 0;
struct scan_lists *scanlist;
Expand Down
4 changes: 2 additions & 2 deletions service_scan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ void ServiceProbe::setPortVector(vector<u16> *portv, const char *portstr,
// SERVICE_TUNNEL_SSL. Otherwise use SERVICE_TUNNEL_NONE. The line
// number is requested because this function will bail with an error
// (giving the line number) if it fails to parse the string. Ports
// are a comma seperated list of ports and ranges
// are a comma separated list of ports and ranges
// (e.g. 53,80,6000-6010).
void ServiceProbe::setProbablePorts(enum service_tunnel_type tunnel,
const char *portstr, int lineno) {
Expand Down Expand Up @@ -1053,7 +1053,7 @@ void ServiceProbe::addMatch(const char *match, int lineno) {
}

// Parses the given nmap-service-probes file into the AP class
/* Must NOT be static because I have externam maintenance tools (servicematch)
/* Must NOT be static because I have external maintenance tools (servicematch)
which use this */
void parse_nmap_service_probe_file(AllProbes *AP, char *filename) {
ServiceProbe *newProbe;
Expand Down
2 changes: 1 addition & 1 deletion service_scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class ServiceProbe {
// SERVICE_TUNNEL_SSL. Otherwise use SERVICE_TUNNEL_NONE. The line
// number is requested because this function will bail with an error
// (giving the line number) if it fails to parse the string. Ports
// are a comma seperated list of ports and ranges
// are a comma separated list of ports and ranges
// (e.g. 53,80,6000-6010).
void setProbablePorts(enum service_tunnel_type tunnel,
const char *portstr, int lineno);
Expand Down
2 changes: 1 addition & 1 deletion tcpip.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ bool route_dst(const struct sockaddr_storage *const dst, struct route_nfo *rnfo)
be set to 1 if dst is directly connected on the ifentry network and
0 if it requires routing. If nexthop_ip is not NULL, and routing
is required, the next hop is filled into nexthop_ip. This function
returns false if no apporpiate interface or route was found and
returns false if no appropiate interface or route was found and
true if it succeeds. */
bool routethrough(const struct sockaddr_storage * const dest,
struct intf_entry *ifentry,
Expand Down
4 changes: 2 additions & 2 deletions utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ char *strerror(int errnum) {
}
#endif

/* Like the perl equivialent -- It removes the terminating newline from string
/* Like the perl equivalent -- It removes the terminating newline from string
IF one exists. It then returns the POSSIBLY MODIFIED string */
char *chomp(char *string) {
int len = strlen(string);
Expand Down Expand Up @@ -388,7 +388,7 @@ unsigned int gcd_n_uint(int nvals, unsigned int *val)
}

/* This function takes a command and the address of an uninitialized
char ** . It parses the command (by seperating out whitespace)
char ** . It parses the command (by separating out whitespace)
into an argv[] style char **, which it sets the argv parameter to.
The function returns the number of items filled up in the array
(argc), or -1 in the case of an error. This function allocates
Expand Down

0 comments on commit 10ffae4

Please sign in to comment.