enable warnings and fix complaints
authoranton <anton@openbsd.org>
Sun, 14 Jul 2024 18:49:32 +0000 (18:49 +0000)
committeranton <anton@openbsd.org>
Sun, 14 Jul 2024 18:49:32 +0000 (18:49 +0000)
regress/sys/kern/unp-write-closed/Makefile
regress/sys/kern/unp-write-closed/unp-write-closed.c

index 8329941..5b73f5e 100644 (file)
@@ -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 <bsd.regress.mk>
index 51e84ec..103ccbf 100644 (file)
@@ -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 <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;