Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ZerXes
Tor
Commits
f3c7eeb4
Commit
f3c7eeb4
authored
Oct 16, 2007
by
Nick Mathewson
🎨
Browse files
r15843@catbus: nickm | 2007-10-16 09:58:49 -0400
Clean up our code to fix a warning under gcc 4.2 svn:r11982
parent
583c15d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/circuitlist.c
View file @
f3c7eeb4
...
...
@@ -1115,20 +1115,21 @@ assert_circuit_ok(const circuit_t *c)
edge_connection_t
*
conn
;
const
or_circuit_t
*
or_circ
=
NULL
;
const
origin_circuit_t
*
origin_circ
=
NULL
;
circuit_t
*
nonconst_circ
;
tor_assert
(
c
);
tor_assert
(
c
->
magic
==
ORIGIN_CIRCUIT_MAGIC
||
c
->
magic
==
OR_CIRCUIT_MAGIC
);
tor_assert
(
c
->
purpose
>=
_CIRCUIT_PURPOSE_MIN
&&
c
->
purpose
<=
_CIRCUIT_PURPOSE_MAX
);
/* Having a separate variable for this pleases GCC 4.2 in ways I hop I never
* understand. -NM. */
nonconst_circ
=
(
circuit_t
*
)
c
;
if
(
CIRCUIT_IS_ORIGIN
(
c
))
origin_circ
=
TO_ORIGIN_CIRCUIT
(
nonconst_circ
);
else
or_circ
=
TO_OR_CIRCUIT
(
nonconst_circ
);
{
/* Having a separate variable for this pleases GCC 4.2 in ways I hope I
* never understand. -NM. */
circuit_t
*
nonconst_circ
=
(
circuit_t
*
)
c
;
if
(
CIRCUIT_IS_ORIGIN
(
c
))
origin_circ
=
TO_ORIGIN_CIRCUIT
(
nonconst_circ
);
else
or_circ
=
TO_OR_CIRCUIT
(
nonconst_circ
);
}
if
(
c
->
n_conn
)
{
tor_assert
(
!
memcmp
(
c
->
n_conn
->
identity_digest
,
c
->
n_conn_id_digest
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment