From: anton Date: Sun, 14 Jul 2024 18:49:32 +0000 (+0000) Subject: enable warnings and fix complaints X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=39bc8ae496118835b834638658fc7af326a8a2dd;p=openbsd enable warnings and fix complaints --- diff --git a/regress/sys/kern/unp-write-closed/Makefile b/regress/sys/kern/unp-write-closed/Makefile index 83299417480..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.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 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 51e84ec7c65..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.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 * Copyright (c) 2024 Alenander Bluhm @@ -27,7 +27,7 @@ sig_atomic_t done = 0; -void +static void handler(int sigraised) { done = 1;