summaryrefslogtreecommitdiff
path: root/proc-region-rw.c
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-10-18 21:52:01 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-10-18 21:52:01 +0300
commit36d3fb3a884d02994932b818a28aa04fb5c1706b (patch)
treeef8ab99277c458032796390ce8d2e2603dc8cc0b /proc-region-rw.c
parent2efc087cd4f70c07523b82941259a5d2597b4460 (diff)
proc-region-rw: use errx
Diffstat (limited to 'proc-region-rw.c')
-rw-r--r--proc-region-rw.c2
1 files changed, 1 insertions, 1 deletions
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));
}