ref: d09c46c352ca2595454c54b8d30aea1f0a0f6607
parent: 272d76f2b1acac584ac654e64be1df2bec11a393
parent: a0726e01ad6cc55ebaa78bbf42aa9532e3c10b78
author: cinap_lenrek <cinap_lenrek@rei2.9hal>
date: Thu Dec 29 12:57:11 EST 2011
merge
--- a/sys/src/boot/pc/sub.c
+++ b/sys/src/boot/pc/sub.c
@@ -66,17 +66,6 @@
return 0;
}
-char*
-strrchr(char *s, int c)
-{- char *r = 0;
-
- while(s = strchr(s, c))
- r = s++;
-
- return r;
-}
-
void
print(char *s)
{@@ -264,7 +253,7 @@
print("no bootfile\r\n");goto Loop;
}
- if(p = strrchr(kern, '!'))
+ while(p = strchr(kern, '!'))
kern = p+1;
return kern;
--
⑨