summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-10-19 12:38:10 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-10-19 12:38:10 +0300
commit7be01d90ef2f59138ff2ee9db02f658408f4a86f (patch)
treef144f9aae77f4b1f94d8ee310df17619608c571d
parentc1885a2af8c483dece4087f31fa4f2853d44f128 (diff)
proc-region-rw: minor consistency edit
MODE_MAP is first everywhere else so..
-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 c96a079..bf0dad0 100644
--- a/proc-region-rw.c
+++ b/proc-region-rw.c
@@ -52,7 +52,7 @@ context_init(struct context *ctx, size_t argc, const char *argv[])
ctx->proc.pid = strtoull(argv[arg++], NULL, 10);
{
- bool w = false, r = false, m = false;
+ bool m = false, w = false, r = false;
const char *mode = argv[arg++];
if (!(m = !strcmp(mode, "map")) && !(w = !strcmp(mode, "write")) && !(r = !strcmp(mode, "read")))
errx(EXIT_FAILURE, "mode must be write or read");