From 36d3fb3a884d02994932b818a28aa04fb5c1706b Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 18 Oct 2018 21:52:01 +0300 Subject: proc-region-rw: use errx --- proc-region-rw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc-region-rw.c b/proc-region-rw.c index a7ad2ca..c96a079 100644 --- a/proc-region-rw.c +++ b/proc-region-rw.c @@ -55,7 +55,7 @@ context_init(struct context *ctx, size_t argc, const char *argv[]) bool w = false, r = false, m = false; const char *mode = argv[arg++]; if (!(m = !strcmp(mode, "map")) && !(w = !strcmp(mode, "write")) && !(r = !strcmp(mode, "read"))) - err(EXIT_FAILURE, "mode must be write or read"); + errx(EXIT_FAILURE, "mode must be write or read"); ctx->op.mode = (m ? MODE_MAP : (w ? MODE_WRITE : MODE_READ)); } -- cgit v1.2.3-70-g09d2