aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-07-22 21:12:10 +0000
committerNick Mathewson <nickm@torproject.org>2005-07-22 21:12:10 +0000
commit18c11eb3bcbd042eba410c1f01659ea6ad0aa2df (patch)
tree2a646f404190c10164bc93ff7f90dc823c417264 /src/or/connection.c
parentd42aae7cfbe5e896b18e2502034d1bc8ff93dac1 (diff)
downloadtor-18c11eb3bcbd042eba410c1f01659ea6ad0aa2df.tar
tor-18c11eb3bcbd042eba410c1f01659ea6ad0aa2df.tar.gz
Be consistent about preferring foo* to struct foo*
svn:r4637
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 4fd918e66..8b9667bdb 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -784,16 +784,16 @@ connection_connect(connection_t *conn, char *address,
* or if the existing connections do not match those configured.
*/
static int
-retry_listeners(int type, struct config_line_t *cfg,
+retry_listeners(int type, config_line_t *cfg,
int port_option, const char *default_addr, int force)
{
- struct smartlist_t *launch = smartlist_create();
+ smartlist_t *launch = smartlist_create();
int free_launch_elts = 1;
- struct config_line_t *c;
+ config_line_t *c;
int n_conn, i;
connection_t *conn;
connection_t **carray;
- struct config_line_t *line;
+ config_line_t *line;
if (cfg && port_option) {
for (c = cfg; c; c = c->next) {
@@ -801,7 +801,7 @@ retry_listeners(int type, struct config_line_t *cfg,
}
free_launch_elts = 0;
} else if (port_option) {
- line = tor_malloc_zero(sizeof(struct config_line_t));
+ line = tor_malloc_zero(sizeof(config_line_t));
line->key = tor_strdup("");
line->value = tor_strdup(default_addr);
smartlist_add(launch, line);
@@ -823,7 +823,7 @@ retry_listeners(int type, struct config_line_t *cfg,
}
/* Okay, so this is a listener. Is it configured? */
line = NULL;
- SMARTLIST_FOREACH(launch, struct config_line_t *, wanted,
+ SMARTLIST_FOREACH(launch, config_line_t *, wanted,
{
char *addr;
uint16_t port;
@@ -852,7 +852,7 @@ retry_listeners(int type, struct config_line_t *cfg,
/* Now open all the listeners that are configured but not opened. */
i = 0;
- SMARTLIST_FOREACH(launch, struct config_line_t *, cfg,
+ SMARTLIST_FOREACH(launch, config_line_t *, cfg,
{
if (connection_create_listener(cfg->value, (uint16_t) port_option,
type)<0)
@@ -860,7 +860,7 @@ retry_listeners(int type, struct config_line_t *cfg,
});
if (free_launch_elts) {
- SMARTLIST_FOREACH(launch, struct config_line_t *, cfg,
+ SMARTLIST_FOREACH(launch, config_line_t *, cfg,
config_free_lines(cfg));
}
smartlist_free(launch);