summaryrefslogtreecommitdiff
path: root/src/or/consdiff.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-03-07 13:15:43 -0500
committerNick Mathewson <nickm@torproject.org>2017-03-16 14:38:29 -0400
commiteff9fbd17d5fb4b1c196c241da4513d51893f52e (patch)
tree79a5b52e0b7278faf14f6bf0c52fd4662a20fdd0 /src/or/consdiff.h
parent69b3e11e5994234d985d5711be0b1642bdd38a75 (diff)
downloadtor-eff9fbd17d5fb4b1c196c241da4513d51893f52e.tar.gz
tor-eff9fbd17d5fb4b1c196c241da4513d51893f52e.zip
Fix an abstraction violation.
Don't alias the insides of smartlist_t; that way lies madness.
Diffstat (limited to 'src/or/consdiff.h')
-rw-r--r--src/or/consdiff.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/consdiff.h b/src/or/consdiff.h
index 3316ed6879..42cd3afa83 100644
--- a/src/or/consdiff.h
+++ b/src/or/consdiff.h
@@ -37,7 +37,8 @@ typedef struct smartlist_slice_t {
STATIC smartlist_t *gen_ed_diff(const smartlist_t *cons1,
const smartlist_t *cons2);
STATIC smartlist_t *apply_ed_diff(const smartlist_t *cons1,
- const smartlist_t *diff);
+ const smartlist_t *diff,
+ int start_line);
STATIC void calc_changes(smartlist_slice_t *slice1, smartlist_slice_t *slice2,
bitarray_t *changed1, bitarray_t *changed2);
STATIC smartlist_slice_t *smartlist_slice(const smartlist_t *list,