You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by yu...@apache.org on 2013/09/15 10:22:27 UTC
git commit: TS-2187: 'nr' set but not used in EventNotify::signal()
Updated Branches:
refs/heads/master 93184bbfa -> f47c6be30
TS-2187: 'nr' set but not used in EventNotify::signal()
Signed-off-by: Yunkai Zhang <qi...@taobao.com>
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/f47c6be3
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/f47c6be3
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/f47c6be3
Branch: refs/heads/master
Commit: f47c6be30ee7217ec74943d1cd78b3ef84aedce4
Parents: 93184bb
Author: Yunkai Zhang <qi...@taobao.com>
Authored: Sun Sep 15 16:16:46 2013 +0800
Committer: Yunkai Zhang <qi...@taobao.com>
Committed: Sun Sep 15 16:21:59 2013 +0800
----------------------------------------------------------------------
lib/ts/EventNotify.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f47c6be3/lib/ts/EventNotify.cc
----------------------------------------------------------------------
diff --git a/lib/ts/EventNotify.cc b/lib/ts/EventNotify.cc
index c838f9b..9ee0592 100644
--- a/lib/ts/EventNotify.cc
+++ b/lib/ts/EventNotify.cc
@@ -70,14 +70,13 @@ void
EventNotify::signal(void)
{
#ifdef HAVE_EVENTFD
- ssize_t nr;
uint64_t value = 1;
//
// If the addition would cause the counter’s value of eventfd
// to exceed the maximum, write() will fail with the errno EAGAIN,
// which is acceptable as the receiver will be notified eventually.
//
- nr = write(m_event_fd, &value, sizeof(uint64_t));
+ write(m_event_fd, &value, sizeof(uint64_t));
#else
ink_cond_signal(&m_cond);
#endif