aboutsummaryrefslogtreecommitdiff
path: root/src/or/channel.h
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2012-10-09 14:16:51 -0700
committerAndrea Shepard <andrea@torproject.org>2012-10-09 23:19:53 -0700
commitbddfb9ffa85a0fe73545fb231a0847c4101758c1 (patch)
tree381d051786cadc514732cf93f73f52dbdb1cc003 /src/or/channel.h
parentf00b44ef8c82eb52fad19fd2218f485f1c5aceca (diff)
downloadtor-bddfb9ffa85a0fe73545fb231a0847c4101758c1.tar
tor-bddfb9ffa85a0fe73545fb231a0847c4101758c1.tar.gz
Add magic number for type-checking channel casts
Diffstat (limited to 'src/or/channel.h')
-rw-r--r--src/or/channel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/channel.h b/src/or/channel.h
index c31806cbd..27fba8fc0 100644
--- a/src/or/channel.h
+++ b/src/or/channel.h
@@ -26,6 +26,9 @@ typedef void (*channel_var_cell_handler_fn_ptr)(channel_t *, var_cell_t *);
*/
struct channel_s {
+ /* Magic number for type-checking cast macros */
+ uint32_t magic;
+
/* Current channel state */
channel_state_t state;