From: anton Date: Tue, 6 Dec 2022 09:37:20 +0000 (+0000) Subject: Correct previous, must exit 0 to signal failure. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e58056cb5d7dd11f9b5b717c0c537a779f59a495;p=openbsd Correct previous, must exit 0 to signal failure. --- diff --git a/regress/sys/uvm/wx_syscall/wx_syscall.c b/regress/sys/uvm/wx_syscall/wx_syscall.c index b272f2c3e0c..c4531a42c50 100644 --- a/regress/sys/uvm/wx_syscall/wx_syscall.c +++ b/regress/sys/uvm/wx_syscall/wx_syscall.c @@ -20,10 +20,10 @@ main() if (errno == ENOTSUP) { printf("mprotect -> ENOTSUP? Please run from " "wxallowed filesystem\n"); - exit(0); } else { - err(1, "mprotect"); + warn("mprotect"); } + exit(0); } flock(0, 0);