diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-03-14 15:41:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-03-25 16:35:34 -0400 |
commit | ddb31dd58301b524564d6cc98da20e5717b05d4b (patch) | |
tree | f6b8f773c57b91b65ce0533aa97b0c1ea56eb5e3 /src/lib/pubsub | |
parent | 3f0bfe1d29e571f1450286085e62246b01509b3b (diff) | |
download | tor-ddb31dd58301b524564d6cc98da20e5717b05d4b.tar.gz tor-ddb31dd58301b524564d6cc98da20e5717b05d4b.zip |
Rename one case of c_type to c_ptr_type.
Diffstat (limited to 'src/lib/pubsub')
-rw-r--r-- | src/lib/pubsub/pubsub_macros.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/pubsub/pubsub_macros.h b/src/lib/pubsub/pubsub_macros.h index f0429dbde4..d091e40dfa 100644 --- a/src/lib/pubsub/pubsub_macros.h +++ b/src/lib/pubsub/pubsub_macros.h @@ -186,17 +186,18 @@ * It needs to be defined somewhere in Tor, using * "DISPATCH_REGISTER_TYPE." * - * "c_type" is a C pointer type (like "char *" or "struct foo *"). + * "c_ptr_type" is a C pointer type (like "char *" or "struct foo *"). + * The "*" needs to be included. */ -#define DECLARE_MESSAGE(messagename, typename, c_type) \ - DECLARE_MESSAGE_COMMON__(messagename, typename, c_type) \ - ATTR_UNUSED static inline c_type \ +#define DECLARE_MESSAGE(messagename, typename, c_ptr_type) \ + DECLARE_MESSAGE_COMMON__(messagename, typename, c_ptr_type) \ + ATTR_UNUSED static inline c_ptr_type \ msg_arg_get__ ##messagename(msg_aux_data_t m) \ { \ return m.ptr; \ } \ ATTR_UNUSED static inline void \ - msg_arg_set__ ##messagename(msg_aux_data_t *m, c_type v) \ + msg_arg_set__ ##messagename(msg_aux_data_t *m, c_ptr_type v) \ { \ m->ptr = v; \ } \ |