aboutsummaryrefslogtreecommitdiff
path: root/src/common/container.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/common/container.c
parentd42aae7cfbe5e896b18e2502034d1bc8ff93dac1 (diff)
downloadtor-18c11eb3bcbd042eba410c1f01659ea6ad0aa2df.tar
tor-18c11eb3bcbd042eba410c1f01659ea6ad0aa2df.tar.gz
Be consistent about preferring foo* to struct foo*
svn:r4637
Diffstat (limited to 'src/common/container.c')
-rw-r--r--src/common/container.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/container.c b/src/common/container.c
index b53710d4f..a231afdc8 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -388,18 +388,18 @@ char *smartlist_join_strings2(smartlist_t *sl, const char *join,
/* Splay-tree implementation of string-to-void* map
*/
-struct strmap_entry_t {
+typedef struct strmap_entry_t {
SPLAY_ENTRY(strmap_entry_t) node;
char *key;
void *val;
-};
+} strmap_entry_t;
struct strmap_t {
SPLAY_HEAD(strmap_tree, strmap_entry_t) head;
};
-static int compare_strmap_entries(struct strmap_entry_t *a,
- struct strmap_entry_t *b)
+static int compare_strmap_entries(strmap_entry_t *a,
+ strmap_entry_t *b)
{
return strcmp(a->key, b->key);
}