diff options
author | Taylor R Campbell <campbell+tor@mumble.net> | 2019-01-10 17:12:32 +0000 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-01-11 14:40:50 +0200 |
commit | 948856c03ef417cc9dad9ef85b7bb5c164edb742 (patch) | |
tree | cb1cdc17963be4adb2eb82f20dde4bafd2400be4 | |
parent | ca544246020cddfee3f7fd46899dcf3a9382eb62 (diff) | |
download | tor-948856c03ef417cc9dad9ef85b7bb5c164edb742.tar.gz tor-948856c03ef417cc9dad9ef85b7bb5c164edb742.zip |
Fix more type redefinition errors.
In file included from ./src/core/or/or_circuit_st.h:12:0,
from src/core/or/circuitlist.c:112:
./src/core/or/circuit_st.h:15:39: error: redefinition of typedef ‘circpad_machine_spec_t’
./src/core/or/circuitpadding.h:572:3: note: previous declaration of ‘circpad_machine_spec_t’ was here
./src/core/or/circuit_st.h:16:40: error: redefinition of typedef ‘circpad_machine_state_t’
./src/core/or/circuitpadding.h:517:3: note: previous declaration of ‘circpad_machine_state_t’ was here
-rw-r--r-- | src/core/or/circuit_st.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/or/circuit_st.h b/src/core/or/circuit_st.h index bfbd336c3a..47639940d4 100644 --- a/src/core/or/circuit_st.h +++ b/src/core/or/circuit_st.h @@ -12,8 +12,8 @@ #include "core/or/cell_queue_st.h" struct hs_token_t; -typedef struct circpad_machine_spec_t circpad_machine_spec_t; -typedef struct circpad_machine_state_t circpad_machine_state_t; +struct circpad_machine_spec_t; +struct circpad_machine_state_t; /** Number of padding state machines on a circuit. */ #define CIRCPAD_MAX_MACHINES (2) @@ -189,7 +189,7 @@ struct circuit_t { * * Each element of this array corresponds to a different padding machine, * and we can have up to CIRCPAD_MAX_MACHINES such machines. */ - const circpad_machine_spec_t *padding_machine[CIRCPAD_MAX_MACHINES]; + const struct circpad_machine_spec_t *padding_machine[CIRCPAD_MAX_MACHINES]; /** Adaptive Padding machine info for above machines. This is the * per-circuit mutable information, such as the current state and @@ -200,7 +200,7 @@ struct circuit_t { * * Each element of this array corresponds to a different padding machine, * and we can have up to CIRCPAD_MAX_MACHINES such machines. */ - circpad_machine_state_t *padding_info[CIRCPAD_MAX_MACHINES]; + struct circpad_machine_state_t *padding_info[CIRCPAD_MAX_MACHINES]; }; #endif |