From db8fb62e4d599f4e08a3b6420e42b2445e8d7fe3 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 6 Sep 2006 18:47:51 +0000 Subject: for vs while --- syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syscall.c') diff --git a/syscall.c b/syscall.c index 4cff057..166bf4b 100644 --- a/syscall.c +++ b/syscall.c @@ -62,7 +62,7 @@ checkstring(uint s) char c; int len = 0; - while(1){ + for(;;){ if(fetchbyte(curproc[cpu()], s, &c) < 0) return -1; if(c == '\0') -- cgit v1.2.3