aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-10-08 05:43:28 +0000
committerRoger Dingledine <arma@torproject.org>2004-10-08 05:43:28 +0000
commit2bcd0f34f546ae9538a9b95cb5a2b17aaa4dd02f (patch)
tree52fbd4ce5554e2824353daaf8d86bae13ca92933 /src/common/util.c
parent6c970aec946942d10996cda55798859dbc90f105 (diff)
downloadtor-2bcd0f34f546ae9538a9b95cb5a2b17aaa4dd02f.tar
tor-2bcd0f34f546ae9538a9b95cb5a2b17aaa4dd02f.tar.gz
fix compile error: move variable declarations before code
svn:r2430
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index faa87c9c8..5d5f3b554 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -231,10 +231,10 @@ int tor_strpartition(char *dest, size_t dest_len,
const char *s, const char *insert, size_t n,
part_finish_rule_t rule)
{
- tor_assert(s && insert && n > 0);
char *destp;
int len_in, len_out, len_ins;
int is_even;
+ tor_assert(s && insert && n > 0);
len_in = strlen(s);
len_ins = strlen(insert);
len_out = len_in + (len_in/n)*len_ins;