aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_pt.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-07-31 13:36:17 -0400
committerNick Mathewson <nickm@torproject.org>2013-07-31 13:36:17 -0400
commit8a0eedbbb08199818cd7c2c6998f062c03e33122 (patch)
tree33705fa344843dfeebd42aa3d41a1771ce276101 /src/test/test_pt.c
parent22a074caa71723b35c3a59620f8a2ebdbf290388 (diff)
downloadtor-8a0eedbbb08199818cd7c2c6998f062c03e33122.tar
tor-8a0eedbbb08199818cd7c2c6998f062c03e33122.tar.gz
Fix mixed declaration/statement warning
Diffstat (limited to 'src/test/test_pt.c')
-rw-r--r--src/test/test_pt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_pt.c b/src/test/test_pt.c
index 162d9e3da..afa4917da 100644
--- a/src/test/test_pt.c
+++ b/src/test/test_pt.c
@@ -166,12 +166,12 @@ static smartlist_t *
tor_get_lines_from_handle_replacement(STDIN_HANDLE *handle,
enum stream_status *stream_status_out)
{
- (void) handle;
- (void) stream_status_out;
static int times_called = 0;
-
smartlist_t *retval_sl = smartlist_new();
+ (void) handle;
+ (void) stream_status_out;
+
/* Generate some dummy CMETHOD lines the first 5 times. The 6th
time, send 'CMETHODS DONE' to finish configuring the proxy. */
if (times_called++ != 5) {
@@ -205,9 +205,9 @@ get_or_state_replacement(void)
static void
test_pt_configure_proxy(void *arg)
{
- (void) arg;
int i;
managed_proxy_t *mp = NULL;
+ (void) arg;
dummy_state = tor_malloc_zero(sizeof(or_state_t));