tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 395fa0258d56b24e39cd714834ffe0dcb365ea25
parent e58555135a11e1c78b130cb4807d5dc1d1dfe97b
Author: David Goulet <dgoulet@torproject.org>
Date:   Mon,  9 Apr 2018 14:09:40 -0400

compat: Fix unchecked return value from event_del()

Explicitly tell the compiler we don't care about it.

Coverity CID 1434156

Signed-off-by: David Goulet <dgoulet@torproject.org>

Diffstat:
Msrc/common/compat_libevent.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c @@ -322,7 +322,7 @@ mainloop_event_cancel(mainloop_event_t *event) { if (!event) return; - event_del(event->ev); + (void) event_del(event->ev); } /** Cancel <b>event</b> and release all storage associated with it. */