From 7be01d90ef2f59138ff2ee9db02f658408f4a86f Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Fri, 19 Oct 2018 12:38:10 +0300 Subject: proc-region-rw: minor consistency edit MODE_MAP is first everywhere else so.. --- proc-region-rw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proc-region-rw.c') 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"); -- cgit v1.2.3