diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-11-08 21:44:32 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-11-08 22:26:23 +0100 |
commit | 0619467bd349af64c89ac0c325e8663026364bbf (patch) | |
tree | d2832efe9bbed512d83a78b0b53dc2b33219e88d /src/signal_wrap.cc | |
parent | 3facd4e1dc458aa6790403c0a86beb277cc33efb (diff) | |
download | node-new-0619467bd349af64c89ac0c325e8663026364bbf.tar.gz |
src: remove container_of, use CONTAINER_OF
CONTAINER_OF was introduced a while ago but was not used consistently
everywhere yet. This commit fixes that.
Why CONTAINER_OF instead of container_of? The former makes it crystal
clear that it's a macro, not a function.
Diffstat (limited to 'src/signal_wrap.cc')
-rw-r--r-- | src/signal_wrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signal_wrap.cc b/src/signal_wrap.cc index b0f16196fa..b38ca38d0c 100644 --- a/src/signal_wrap.cc +++ b/src/signal_wrap.cc @@ -98,7 +98,7 @@ class SignalWrap : public HandleWrap { } static void OnSignal(uv_signal_t* handle, int signum) { - SignalWrap* wrap = container_of(handle, SignalWrap, handle_); + SignalWrap* wrap = CONTAINER_OF(handle, SignalWrap, handle_); Environment* env = wrap->env(); Context::Scope context_scope(env->context()); HandleScope handle_scope(env->isolate()); |