summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbluhm <>2021-07-06 11:50:34 +0000
committerbluhm <>2021-07-06 11:50:34 +0000
commit144a37fdfc8baa4f789e6d7a37902d4afd12a122 (patch)
treeb3281978fa2ec92ccf7a790fb60ed627e3d746ba /src
parentd7ebc94a200ecf103c2b66842182ab0689a88daa (diff)
downloadopenbsd-144a37fdfc8baa4f789e6d7a37902d4afd12a122.tar.gz
openbsd-144a37fdfc8baa4f789e6d7a37902d4afd12a122.tar.bz2
openbsd-144a37fdfc8baa4f789e6d7a37902d4afd12a122.zip
alarm(3) cannot fail, remove error handling.
suggested by millert@
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libssl/interop/server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/regress/lib/libssl/interop/server.c b/src/regress/lib/libssl/interop/server.c
index 4b9dd0f506..68e277a87b 100644
--- a/src/regress/lib/libssl/interop/server.c
+++ b/src/regress/lib/libssl/interop/server.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: server.c,v 1.9 2020/09/14 00:51:04 bluhm Exp $ */ 1/* $OpenBSD: server.c,v 1.10 2021/07/06 11:50:34 bluhm Exp $ */
2/* 2/*
3 * Copyright (c) 2018-2019 Alexander Bluhm <bluhm@openbsd.org> 3 * Copyright (c) 2018-2019 Alexander Bluhm <bluhm@openbsd.org>
4 * 4 *
@@ -250,8 +250,7 @@ main(int argc, char *argv[])
250 /* fork to background and set timeout */ 250 /* fork to background and set timeout */
251 if (daemon(1, 1) == -1) 251 if (daemon(1, 1) == -1)
252 err(1, "daemon"); 252 err(1, "daemon");
253 if ((int)alarm(10) == -1) 253 alarm(10);
254 err(1, "alarm");
255 254
256 do { 255 do {
257 /* accept connection */ 256 /* accept connection */