[or-cvs] Spell-check strings and comments
Nick Mathewson
nickm at seul.org
Wed Dec 1 03:48:19 UTC 2004
Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv16403/src/or
Modified Files:
buffers.c circuituse.c config.c connection.c dirserv.c
hibernate.c main.c rendclient.c rendmid.c rendservice.c
rephist.c routerlist.c routerparse.c
Log Message:
Spell-check strings and comments
Index: buffers.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/buffers.c,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- buffers.c 29 Nov 2004 22:25:29 -0000 1.120
+++ buffers.c 1 Dec 2004 03:48:13 -0000 1.121
@@ -70,7 +70,7 @@
static INLINE void buf_shrink_if_underfull(buf_t *buf) {
size_t new_len;
/* If the buffer is at least .25 full, or if shrinking the buffer would
- * put it onder MIN_BUF_SHRINK_SIZE, don't do it. */
+ * put it under MIN_BUF_SHRINK_SIZE, don't do it. */
if (buf->datalen >= buf->len/4 || buf->len < 2*MIN_BUF_SHRINK_SIZE)
return;
/* Shrink new_len by powers of 2 until: datalen is at least 1/4 of
Index: circuituse.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/circuituse.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- circuituse.c 30 Nov 2004 08:39:14 -0000 1.31
+++ circuituse.c 1 Dec 2004 03:48:13 -0000 1.32
@@ -604,7 +604,7 @@
circuit_t *circuit_launch_by_identity(uint8_t purpose, const char *exit_digest)
{
if (!has_fetched_directory) {
- log_fn(LOG_DEBUG,"Haven't fetched directory yet; cancelling circuit launch.");
+ log_fn(LOG_DEBUG,"Haven't fetched directory yet; canceling circuit launch.");
return NULL;
}
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.276
retrieving revision 1.277
diff -u -d -r1.276 -r1.277
--- config.c 1 Dec 2004 02:54:12 -0000 1.276
+++ config.c 1 Dec 2004 03:48:13 -0000 1.277
@@ -329,7 +329,7 @@
/* Set up accounting */
if (accounting_parse_options(options, 0)<0) {
- log_fn(LOG_ERR,"Error in accouting options");
+ log_fn(LOG_ERR,"Error in accounting options");
return -1;
}
if (accounting_is_enabled(options))
@@ -499,7 +499,7 @@
return &config_vars[i];
}
}
- /* Okay, unrecogized options */
+ /* Okay, unrecognized options */
return NULL;
}
@@ -1522,7 +1522,7 @@
if (is_set)
return path;
- /* Find X:\documents and settings\username\applicatation data\ .
+ /* Find X:\documents and settings\username\application data\ .
* We would use SHGetSpecialFolder path, but that wasn't added until IE4.
*/
if (!SUCCEEDED(SHGetSpecialFolderLocation(NULL, CSIDL_APPDATA,
@@ -1909,7 +1909,7 @@
}
/** Convert all old-style logging options to new-style Log options. Return 0
- * on success, -1 on faulure. */
+ * on success, -1 on failure. */
static int
normalize_log_options(or_options_t *options)
{
@@ -2077,7 +2077,7 @@
/** Read the contents of a DirServer line from <b>line</b>. Return 0
* if the line is well-formed, and 0 if it isn't. If
* <b>validate_only</b> is 0, and the line is well-formed, then add
- * the dirserver desribed in the line as a valid server. */
+ * the dirserver described in the line as a valid server. */
static int
parse_dir_server_line(const char *line, int validate_only)
{
Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/connection.c,v
retrieving revision 1.305
retrieving revision 1.306
diff -u -d -r1.305 -r1.306
--- connection.c 1 Dec 2004 03:15:59 -0000 1.305
+++ connection.c 1 Dec 2004 03:48:13 -0000 1.306
@@ -1005,7 +1005,7 @@
conn->timestamp_lastwritten = now;
- /* Sometimes, "writeable" means "connected". */
+ /* Sometimes, "writable" means "connected". */
if (connection_state_is_connecting(conn)) {
if (getsockopt(conn->s, SOL_SOCKET, SO_ERROR, (void*)&e, &len) < 0) {
log_fn(LOG_WARN,"getsockopt() syscall failed?! Please report to tor-ops.");
Index: dirserv.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -d -r1.127 -r1.128
--- dirserv.c 29 Nov 2004 22:25:30 -0000 1.127
+++ dirserv.c 1 Dec 2004 03:48:13 -0000 1.128
@@ -899,7 +899,7 @@
}
runningrouters_is_dirty = 0;
- /* We don't cache runnning-routers to disk, so there's no point in
+ /* We don't cache running-routers to disk, so there's no point in
* authdirservers caching it. */
/* dirserv_set_cached_directory(the_runningrouters, time(NULL), 1); */
Index: hibernate.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/hibernate.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- hibernate.c 29 Nov 2004 22:25:30 -0000 1.34
+++ hibernate.c 1 Dec 2004 03:48:13 -0000 1.35
@@ -64,7 +64,7 @@
* connections, but provide bandwidth until we run out.
* 5. Then we hibernate until the end of the interval.
*
- * If the interval ends before we run out of bandwdith, we go back to
+ * If the interval ends before we run out of bandwidth, we go back to
* step one.
*/
@@ -153,7 +153,7 @@
case UNIT_MONTH:
d = tor_parse_long(smartlist_get(items,1), 10, 1, 28, &ok, NULL);
if (!ok) {
- log_fn(LOG_WARN, "Monthy accounting must start begin on a day between 1 and 28");
+ log_fn(LOG_WARN, "Monthly accounting must start begin on a day between 1 and 28");
goto err;
}
break;
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.399
retrieving revision 1.400
diff -u -d -r1.399 -r1.400
--- main.c 1 Dec 2004 02:54:13 -0000 1.399
+++ main.c 1 Dec 2004 03:48:13 -0000 1.400
@@ -1247,9 +1247,9 @@
* separate process (as now) or that can install and run itself
* as an NT service. I have no idea how hard this is.
*
- * Notes about develiping NT services:
+ * Notes about developing NT services:
*
- * 1. Don't count on your CWD. If an abolute path is not given, the
+ * 1. Don't count on your CWD. If an absolute path is not given, the
* fopen() function goes wrong.
* 2. The parameters given to the nt_service_body() function differ
* from those given to main() function.
Index: rendclient.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/rendclient.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- rendclient.c 29 Nov 2004 22:25:30 -0000 1.69
+++ rendclient.c 1 Dec 2004 03:48:13 -0000 1.70
@@ -5,7 +5,7 @@
/**
* \file rendclient.c
- * \brief Client code to access location-hiddenn services.
+ * \brief Client code to access location-hidden services.
**/
#include "or.h"
Index: rendmid.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/rendmid.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- rendmid.c 29 Nov 2004 22:25:30 -0000 1.33
+++ rendmid.c 1 Dec 2004 03:48:13 -0000 1.34
@@ -81,7 +81,7 @@
circuit_mark_for_close(c);
}
- /* Acknlowedge the request. */
+ /* Acknowledge the request. */
if (connection_edge_send_command(NULL,circ,
RELAY_COMMAND_INTRO_ESTABLISHED,
"", 0, NULL)<0) {
@@ -199,7 +199,7 @@
goto err;
}
- /* Acknlowedge the request. */
+ /* Acknowledge the request. */
if (connection_edge_send_command(NULL,circ,
RELAY_COMMAND_RENDEZVOUS_ESTABLISHED,
"", 0, NULL)<0) {
Index: rendservice.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/rendservice.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- rendservice.c 29 Nov 2004 22:25:30 -0000 1.109
+++ rendservice.c 1 Dec 2004 03:48:13 -0000 1.110
@@ -209,7 +209,7 @@
continue;
}
if (!service) {
- log_fn(LOG_WARN, "HiddenServicePort with no preceeding HiddenServiceDir directive");
+ log_fn(LOG_WARN, "HiddenServicePort with no preceding HiddenServiceDir directive");
rend_service_free(service);
return -1;
}
@@ -925,7 +925,7 @@
}
/** Log the status of introduction points for all rendezvous services
- * at log severity <b>serverity</b>.
+ * at log severity <b>severity</b>.
*/
void
rend_service_dump_stats(int severity)
Index: rephist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/rephist.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- rephist.c 1 Dec 2004 02:54:13 -0000 1.46
+++ rephist.c 1 Dec 2004 03:48:13 -0000 1.47
@@ -18,7 +18,7 @@
time_t since;
/** When did we most recently note a change to this link */
time_t changed;
- /** How many times did extending from OR1 to OR2 succeeed? */
+ /** How many times did extending from OR1 to OR2 succeed? */
unsigned long n_extend_ok;
/** How many times did extending from OR1 to OR2 fail? */
unsigned long n_extend_fail;
@@ -599,7 +599,7 @@
/* We haven't been through the circular array yet; time starts at i=0.*/
i = 0;
else
- /* We've been arround the array at least once. The next i to be
+ /* We've been around the array at least once. The next i to be
overwritten is the oldest. */
i = b->next_max_idx;
Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.194
retrieving revision 1.195
diff -u -d -r1.194 -r1.195
--- routerlist.c 29 Nov 2004 22:25:30 -0000 1.194
+++ routerlist.c 1 Dec 2004 03:48:13 -0000 1.195
@@ -786,7 +786,7 @@
if (router->is_verified) {
/* The new verified router replaces the old one; remove the
* old one. And carry on to the end of the list, in case
- * there are more old unverifed routers with this nickname
+ * there are more old unverified routers with this nickname
*/
/* mark-for-close connections using the old key, so we can
* make new ones with the new key.
Index: routerparse.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerparse.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -d -r1.90 -r1.91
--- routerparse.c 30 Nov 2004 03:41:06 -0000 1.90
+++ routerparse.c 1 Dec 2004 03:48:14 -0000 1.91
@@ -1409,7 +1409,7 @@
char tmp[128];
if (tor_version_parse(cutoff, &cutoff_version)<0) {
- log_fn(LOG_WARN,"Bug: cutoff version '%s' unparsable.",cutoff);
+ log_fn(LOG_WARN,"Bug: cutoff version '%s' unparseable.",cutoff);
return 0;
}
if (strcmpstart(platform,"Tor ")) /* nonstandard Tor; be safe and say yes */
@@ -1423,7 +1423,7 @@
strlcpy(tmp, start, s-start+1);
if (tor_version_parse(tmp, &router_version)<0) {
- log_fn(LOG_INFO,"Router version '%s' unparsable.",tmp);
+ log_fn(LOG_INFO,"Router version '%s' unparseable.",tmp);
return 1; /* be safe and say yes */
}
More information about the tor-commits
mailing list