diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-10-18 21:52:01 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-10-18 21:52:01 +0300 |
commit | 36d3fb3a884d02994932b818a28aa04fb5c1706b (patch) | |
tree | ef8ab99277c458032796390ce8d2e2603dc8cc0b | |
parent | 2efc087cd4f70c07523b82941259a5d2597b4460 (diff) |
proc-region-rw: use errx
-rw-r--r-- | proc-region-rw.c | 2 |
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)); } |