diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-10-19 12:38:10 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-10-19 12:38:10 +0300 |
commit | 7be01d90ef2f59138ff2ee9db02f658408f4a86f (patch) | |
tree | f144f9aae77f4b1f94d8ee310df17619608c571d /proc-region-rw.c | |
parent | c1885a2af8c483dece4087f31fa4f2853d44f128 (diff) |
proc-region-rw: minor consistency edit
MODE_MAP is first everywhere else so..
Diffstat (limited to 'proc-region-rw.c')
-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 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"); |