diff options
| author | bluhm <> | 2021-07-06 11:50:34 +0000 |
|---|---|---|
| committer | bluhm <> | 2021-07-06 11:50:34 +0000 |
| commit | 79ad01e78891813d44a87b6399284a5fdf74f0ee (patch) | |
| tree | b3281978fa2ec92ccf7a790fb60ed627e3d746ba /src/regress/lib/libssl/interop/server.c | |
| parent | 84591be6964a33e26a27765180efae3d29c3c04f (diff) | |
| download | openbsd-79ad01e78891813d44a87b6399284a5fdf74f0ee.tar.gz openbsd-79ad01e78891813d44a87b6399284a5fdf74f0ee.tar.bz2 openbsd-79ad01e78891813d44a87b6399284a5fdf74f0ee.zip | |
alarm(3) cannot fail, remove error handling.
suggested by millert@
Diffstat (limited to 'src/regress/lib/libssl/interop/server.c')
| -rw-r--r-- | src/regress/lib/libssl/interop/server.c | 5 |
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 */ |
