ref: f2f831eefaa00d6987f8c9a1a22597234b2ce16c
parent: 2bba1846b3ca24fd6847bcb036fdb441113110e5
parent: 9fc0c01843cb9e154f1565c9fa368c0dd0bae7a8
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;
--
⑨