summaryrefslogtreecommitdiff
path: root/regress/lib/libssl/interop
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2021-07-06 11:50:35 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2021-07-06 11:50:35 +0000
commit4a491f62e7da10016cab00c0033dbf592b978efb (patch)
tree0263cc595baf49c112a014785d3be7e569b3e018 /regress/lib/libssl/interop
parent0d2a787f98dcdd59b3bb55f6f0b1581207b2ea11 (diff)
alarm(3) cannot fail, remove error handling.
suggested by millert@
Diffstat (limited to 'regress/lib/libssl/interop')
-rw-r--r--regress/lib/libssl/interop/server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/regress/lib/libssl/interop/server.c b/regress/lib/libssl/interop/server.c
index 4b9dd0f5069..68e277a87bd 100644
--- a/regress/lib/libssl/interop/server.c
+++ b/regress/lib/libssl/interop/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.9 2020/09/14 00:51:04 bluhm Exp $ */
+/* $OpenBSD: server.c,v 1.10 2021/07/06 11:50:34 bluhm Exp $ */
/*
* Copyright (c) 2018-2019 Alexander Bluhm <bluhm@openbsd.org>
*
@@ -250,8 +250,7 @@ main(int argc, char *argv[])
/* fork to background and set timeout */
if (daemon(1, 1) == -1)
err(1, "daemon");
- if ((int)alarm(10) == -1)
- err(1, "alarm");
+ alarm(10);
do {
/* accept connection */