From 16c0a96734d01f5ee61b47c73418ab56505552aa Mon Sep 17 00:00:00 2001 From: dlg Date: Thu, 29 Jun 2017 01:25:59 +0000 Subject: [PATCH] take const off the timeval argument in the pending functions. event_pending, evtimer_pending, and signal_pending all write to the timeval because that's how they tell the caller when the event is meant to fire. ok deraadt@ millert@ jmc@ schwarze@ --- lib/libevent/event.3 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/libevent/event.3 b/lib/libevent/event.3 index d448cf4c576..0167ed86f98 100644 --- a/lib/libevent/event.3 +++ b/lib/libevent/event.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: event.3,v 1.52 2016/07/17 11:21:07 stefan Exp $ +.\" $OpenBSD: event.3,v 1.53 2017/06/29 01:25:59 dlg Exp $ .\" .\" Copyright (c) 2000 Artur Grabowski .\" All rights reserved. @@ -23,7 +23,7 @@ .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: July 17 2016 $ +.Dd $Mdocdate: June 29 2017 $ .Dt EVENT_INIT 3 .Os .Sh NAME @@ -83,7 +83,7 @@ .Ft int .Fn "event_del" "struct event *ev" .Ft int -.Fn "event_pending" "struct event *ev" "short event" "const struct timeval *tv" +.Fn "event_pending" "struct event *ev" "short event" "struct timeval *tv" .Ft int .Fn "event_initialized" "struct event *ev" .Ft void @@ -93,7 +93,7 @@ .Ft void .Fn "evtimer_del" "struct event *ev" .Ft int -.Fn "evtimer_pending" "struct event *ev" "const struct timeval *tv" +.Fn "evtimer_pending" "struct event *ev" "struct timeval *tv" .Ft int .Fn "evtimer_initialized" "struct event *ev" .Ft void @@ -103,7 +103,7 @@ .Ft void .Fn "signal_del" "struct event *ev" .Ft int -.Fn "signal_pending" "struct event *ev" "const struct timeval *tv" +.Fn "signal_pending" "struct event *ev" "struct timeval *tv" .Ft int .Fn "signal_initialized" "struct event *ev" .Ft int -- 2.20.1