mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-03 00:53:32 +01:00
Fix mixed declaration/statement warning
This commit is contained in:
parent
22a074caa7
commit
8a0eedbbb0
@ -166,11 +166,11 @@ static smartlist_t *
|
|||||||
tor_get_lines_from_handle_replacement(STDIN_HANDLE *handle,
|
tor_get_lines_from_handle_replacement(STDIN_HANDLE *handle,
|
||||||
enum stream_status *stream_status_out)
|
enum stream_status *stream_status_out)
|
||||||
{
|
{
|
||||||
|
static int times_called = 0;
|
||||||
|
smartlist_t *retval_sl = smartlist_new();
|
||||||
|
|
||||||
(void) handle;
|
(void) handle;
|
||||||
(void) stream_status_out;
|
(void) stream_status_out;
|
||||||
static int times_called = 0;
|
|
||||||
|
|
||||||
smartlist_t *retval_sl = smartlist_new();
|
|
||||||
|
|
||||||
/* Generate some dummy CMETHOD lines the first 5 times. The 6th
|
/* Generate some dummy CMETHOD lines the first 5 times. The 6th
|
||||||
time, send 'CMETHODS DONE' to finish configuring the proxy. */
|
time, send 'CMETHODS DONE' to finish configuring the proxy. */
|
||||||
@ -205,9 +205,9 @@ get_or_state_replacement(void)
|
|||||||
static void
|
static void
|
||||||
test_pt_configure_proxy(void *arg)
|
test_pt_configure_proxy(void *arg)
|
||||||
{
|
{
|
||||||
(void) arg;
|
|
||||||
int i;
|
int i;
|
||||||
managed_proxy_t *mp = NULL;
|
managed_proxy_t *mp = NULL;
|
||||||
|
(void) arg;
|
||||||
|
|
||||||
dummy_state = tor_malloc_zero(sizeof(or_state_t));
|
dummy_state = tor_malloc_zero(sizeof(or_state_t));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user