diff options
author | Anton Lindqvist <anton@cvs.openbsd.org> | 2024-07-14 18:49:33 +0000 |
---|---|---|
committer | Anton Lindqvist <anton@cvs.openbsd.org> | 2024-07-14 18:49:33 +0000 |
commit | 5fe003520dd96ae19a9f0e36b6d1bd44b663b7e5 (patch) | |
tree | 7ecc4245f44cccc0d4310c396b1a88a8ac2053f4 /regress/sys | |
parent | d0ba38122949f7b4ee08f63d67f232232e3de08c (diff) |
enable warnings and fix complaints
Diffstat (limited to 'regress/sys')
-rw-r--r-- | regress/sys/kern/unp-write-closed/Makefile | 4 | ||||
-rw-r--r-- | regress/sys/kern/unp-write-closed/unp-write-closed.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/regress/sys/kern/unp-write-closed/Makefile b/regress/sys/kern/unp-write-closed/Makefile index eb5d042eaf6..5b73f5eaf03 100644 --- a/regress/sys/kern/unp-write-closed/Makefile +++ b/regress/sys/kern/unp-write-closed/Makefile @@ -1,5 +1,7 @@ -# $OpenBSD: Makefile,v 1.1 2024/06/28 21:07:27 bluhm Exp $ +# $OpenBSD: Makefile,v 1.2 2024/07/14 18:49:32 anton Exp $ PROG= unp-write-closed +WARNINGS= yes + .include <bsd.regress.mk> diff --git a/regress/sys/kern/unp-write-closed/unp-write-closed.c b/regress/sys/kern/unp-write-closed/unp-write-closed.c index 21af9f8c720..103ccbff7bc 100644 --- a/regress/sys/kern/unp-write-closed/unp-write-closed.c +++ b/regress/sys/kern/unp-write-closed/unp-write-closed.c @@ -1,4 +1,4 @@ -/* $OpenBSD: unp-write-closed.c,v 1.1 2024/06/28 21:07:27 bluhm Exp $ */ +/* $OpenBSD: unp-write-closed.c,v 1.2 2024/07/14 18:49:32 anton Exp $ */ /* * Copyright (c) 2024 Vitaliy Makkoveev <mvs@openbsd.org> * Copyright (c) 2024 Alenander Bluhm <bluhm@openbsd.org> @@ -27,7 +27,7 @@ sig_atomic_t done = 0; -void +static void handler(int sigraised) { done = 1; |