From a89620d991b38d3ca1187ca4cf46f4a844190203 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Wed, 1 Mar 1995 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1995-03-01 --- boot/boot.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/boot/boot.c b/boot/boot.c index c2377223bedaa81250d412c99846b26161d9abb9..e8982930a71943e6d806ea6db80a9096f3f6930e 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -28,6 +28,19 @@ static void swapproc(void); static void recover(Method*); static Method *rootserver(char*); +static int +rconv(void *o, Fconv *fp) +{ + char s[ERRLEN]; + + USED(o); + + s[0] = 0; + errstr(s); + strconv(s, fp); + return 0; +} + void boot(int argc, char *argv[]) { @@ -39,6 +52,8 @@ boot(int argc, char *argv[]) sleep(1000); + fmtinstall('r', rconv); + open("#c/cons", OREAD); open("#c/cons", OWRITE); open("#c/cons", OWRITE); @@ -179,7 +194,6 @@ rootserver(char *arg) Method *mp; char *cp; int n; - int notfirst; /* make list of methods */ mp = method;