diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-07-22 21:12:10 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-07-22 21:12:10 +0000 |
commit | 18c11eb3bcbd042eba410c1f01659ea6ad0aa2df (patch) | |
tree | 2a646f404190c10164bc93ff7f90dc823c417264 /src/or/connection.c | |
parent | d42aae7cfbe5e896b18e2502034d1bc8ff93dac1 (diff) | |
download | tor-18c11eb3bcbd042eba410c1f01659ea6ad0aa2df.tar.gz tor-18c11eb3bcbd042eba410c1f01659ea6ad0aa2df.zip |
Be consistent about preferring foo* to struct foo*
svn:r4637
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 4fd918e66e..8b9667bdbe 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); |