summaryrefslogtreecommitdiff
path: root/evmap.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-02-29 15:47:16 -0500
committerNick Mathewson <nickm@torproject.org>2012-02-29 15:47:16 -0500
commit946b5841c22c4b050513ecf6d5a01bd521b05673 (patch)
tree8c0c4561d24b9457f66a16945642f77aaf625524 /evmap.c
parentc7848fa019acda14c864a9db9632cfae6d7f5e33 (diff)
downloadlibevent-946b5841c22c4b050513ecf6d5a01bd521b05673.tar.gz
Clean up lingering _identifiers.
Diffstat (limited to 'evmap.c')
-rw-r--r--evmap.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/evmap.c b/evmap.c
index 38c6b26e..62ecb7b3 100644
--- a/evmap.c
+++ b/evmap.c
@@ -111,30 +111,30 @@ HT_GENERATE(event_io_map, event_map_entry, map_node, hashsocket, eqsocket,
#define GET_IO_SLOT(x, map, slot, type) \
do { \
- struct event_map_entry _key, *_ent; \
- _key.fd = slot; \
- _ent = HT_FIND(event_io_map, map, &_key); \
- (x) = _ent ? &_ent->ent.type : NULL; \
+ struct event_map_entry key_, *ent_; \
+ key_.fd = slot; \
+ ent_ = HT_FIND(event_io_map, map, &key_); \
+ (x) = ent_ ? &ent_->ent.type : NULL; \
} while (0);
#define GET_IO_SLOT_AND_CTOR(x, map, slot, type, ctor, fdinfo_len) \
do { \
- struct event_map_entry _key, *_ent; \
- _key.fd = slot; \
+ struct event_map_entry key_, *ent_; \
+ key_.fd = slot; \
HT_FIND_OR_INSERT_(event_io_map, map_node, hashsocket, map, \
- event_map_entry, &_key, ptr, \
+ event_map_entry, &key_, ptr, \
{ \
- _ent = *ptr; \
+ ent_ = *ptr; \
}, \
{ \
- _ent = mm_calloc(1,sizeof(struct event_map_entry)+fdinfo_len); \
- if (EVUTIL_UNLIKELY(_ent == NULL)) \
+ ent_ = mm_calloc(1,sizeof(struct event_map_entry)+fdinfo_len); \
+ if (EVUTIL_UNLIKELY(ent_ == NULL)) \
return (-1); \
- _ent->fd = slot; \
- (ctor)(&_ent->ent.type); \
- HT_FOI_INSERT_(map_node, map, &_key, _ent, ptr) \
+ ent_->fd = slot; \
+ (ctor)(&ent_->ent.type); \
+ HT_FOI_INSERT_(map_node, map, &key_, ent_, ptr) \
}); \
- (x) = &_ent->ent.type; \
+ (x) = &ent_->ent.type; \
} while (0)
void evmap_io_initmap_(struct event_io_map *ctx)