diff options
author | Andrea Shepard <andrea@torproject.org> | 2012-10-09 14:16:51 -0700 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2012-10-09 23:19:53 -0700 |
commit | bddfb9ffa85a0fe73545fb231a0847c4101758c1 (patch) | |
tree | 381d051786cadc514732cf93f73f52dbdb1cc003 /src/or/channel.h | |
parent | f00b44ef8c82eb52fad19fd2218f485f1c5aceca (diff) | |
download | tor-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.h | 3 |
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; |