diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2009-10-19 01:30:46 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2009-10-19 01:30:46 +0200 |
commit | 740806c453c46e9c985029a644af3a6f899be205 (patch) | |
tree | c4bb13c3415afab989aa26eac590f13824633c58 /src/or/microdesc.c | |
parent | bb22d8fc45f143666f0ee676e0aeae200104a421 (diff) | |
download | tor-740806c453c46e9c985029a644af3a6f899be205.tar.gz tor-740806c453c46e9c985029a644af3a6f899be205.zip |
Fix compile with warnings problems on Snow Leopard
Diffstat (limited to 'src/or/microdesc.c')
-rw-r--r-- | src/or/microdesc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c index e10589fec9..7a65705088 100644 --- a/src/or/microdesc.c +++ b/src/or/microdesc.c @@ -56,10 +56,10 @@ HT_GENERATE(microdesc_map, microdesc_t, node, * On success, return the total number of bytes written, and set * *<b>annotation_len_out</b> to the number of bytes written as * annotations. */ -static int -dump_microdescriptor(FILE *f, microdesc_t *md, int *annotation_len_out) +static size_t +dump_microdescriptor(FILE *f, microdesc_t *md, size_t *annotation_len_out) { - int r = 0; + size_t r = 0; /* XXXX drops unkown annotations. */ if (md->last_listed) { char buf[ISO_TIME_LEN+1]; @@ -169,7 +169,7 @@ microdescs_add_list_to_cache(microdesc_cache_t *cache, /* Okay, it's a new one. */ if (f) { - int annotation_len; + size_t annotation_len; size = dump_microdescriptor(f, md, &annotation_len); md->saved_location = SAVED_IN_JOURNAL; cache->journal_len += size; @@ -269,7 +269,7 @@ microdesc_cache_rebuild(microdesc_cache_t *cache) FILE *f; microdesc_t **mdp; smartlist_t *wrote; - int size; + size_t size; off_t off = 0; int orig_size, new_size; @@ -287,7 +287,7 @@ microdesc_cache_rebuild(microdesc_cache_t *cache) HT_FOREACH(mdp, microdesc_map, &cache->map) { microdesc_t *md = *mdp; - int annotation_len; + size_t annotation_len; if (md->no_save) continue; |