diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-05-02 09:07:29 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-05-02 09:07:29 +0000 |
commit | f0f4c6185050a74682d166f30a2a1da05d0a01a0 (patch) | |
tree | e7ed96604b62f536a3f9c23520e829efb80e70b7 /usr.sbin/relayd/relay.c | |
parent | 97b55dbe5c5abd63637391aad72ad046836292c2 (diff) |
It is no longer needed to pass a cleared timeval to event_loopexit() NULL
does the job just fine. OK reyk@
Diffstat (limited to 'usr.sbin/relayd/relay.c')
-rw-r--r-- | usr.sbin/relayd/relay.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c index 686883e85ed..dd56a6972eb 100644 --- a/usr.sbin/relayd/relay.c +++ b/usr.sbin/relayd/relay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay.c,v 1.26 2007/04/12 14:45:45 reyk Exp $ */ +/* $OpenBSD: relay.c,v 1.27 2007/05/02 09:07:28 claudio Exp $ */ /* * Copyright (c) 2006, 2007 Reyk Floeter <reyk@openbsd.org> @@ -131,17 +131,10 @@ int proc_id; void relay_sig_handler(int sig, short event, void *arg) { - struct timeval tv; - - tv.tv_sec = 0; - tv.tv_usec = 0; - switch (sig) { - case SIGALRM: case SIGTERM: - case SIGQUIT: case SIGINT: - event_loopexit(&tv); + (void)event_loopexit(NULL); } } |