From 34295f461a416e40bb76e67c568a761222dc6913 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 31 May 2009 05:12:21 +0000 Subject: group locks into structs they protect. few naming nits. --- usertests.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usertests.c') diff --git a/usertests.c b/usertests.c index 1d9352d..cc2601c 100644 --- a/usertests.c +++ b/usertests.c @@ -6,8 +6,7 @@ char buf[2048]; char name[3]; -char *echo_args[] = { "echo", "ALL", "TESTS", "PASSED", 0 }; -char *cat_args[] = { "cat", "README", 0 }; +char *echoargv[] = { "echo", "ALL", "TESTS", "PASSED", 0 }; int stdout = 1; // simple file system tests @@ -191,7 +190,7 @@ void exectest(void) { printf(stdout, "exec test\n"); - if(exec("echo", echo_args) < 0) { + if(exec("echo", echoargv) < 0) { printf(stdout, "exec echo failed\n"); exit(); } -- cgit v1.2.3