From 96824000ed89d13665f6f24ddc10b3bf812e7f47 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 5 Aug 2008 14:18:47 -0700 Subject: * comment, clean up scheduler * rewrite lock implementation to be correct (tip: never assume that an algorithm you found in a linux man page is correct.) * delete unneeded void* arg from clone fn * replace Rendez with Note * comment mal better * use 6c -w, fix warnings * mark all assembly functions 7 R=r DELTA=828 (338 added, 221 deleted, 269 changed) OCL=13884 CL=13886 --- src/runtime/string.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/runtime/string.c') diff --git a/src/runtime/string.c b/src/runtime/string.c index d21273de0e..099d7aa1d1 100644 --- a/src/runtime/string.c +++ b/src/runtime/string.c @@ -45,8 +45,6 @@ out: static void prbounds(int8* s, int32 a, int32 b, int32 c) { - int32 i; - prints(s); prints(" "); sys·printint(a); @@ -115,7 +113,6 @@ strcmp(byte *s1, byte *s2) void sys·slicestring(string si, int32 lindex, int32 hindex, string so) { - string s, str; int32 l; if(si == nil) @@ -154,8 +151,6 @@ sys·indexstring(string s, int32 i, byte b) void sys·intstring(int64 v, string s) { - int32 l; - s = mal(sizeof(s->len)+8); s->len = runetochar(s->str, v); FLUSH(&s); -- cgit v1.3-5-g9baa