fix howto
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Mon, 23 Mar 1981 12:36:20 +0000 (04:36 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Mon, 23 Mar 1981 12:36:20 +0000 (04:36 -0800)
SCCS-vsn: sys/vax/stand/boot.c 4.4

usr/src/sys/vax/stand/boot.c

index 0b362c5..30e9f49 100644 (file)
@@ -1,4 +1,4 @@
-/*     boot.c  4.3     81/03/16        */
+/*     boot.c  4.4     81/03/22        */
 
 #include "../h/param.h"
 #include "../h/ino.h"
 
 #include "../h/param.h"
 #include "../h/ino.h"
@@ -26,10 +26,12 @@ char        devname[][2] = {
 
 char line[100] = "xx(0,0)vmunix";
 
 
 char line[100] = "xx(0,0)vmunix";
 
+int    retry = 0;
+
 main()
 {
        register howto, devtype;        /* howto=r11, devtype=r10 */
 main()
 {
        register howto, devtype;        /* howto=r11, devtype=r10 */
-       int io, retry;
+       int io;
 
 #ifdef lint
        howto = 0; devtype = 0;
 
 #ifdef lint
        howto = 0; devtype = 0;
@@ -47,7 +49,6 @@ main()
                        howto = RB_SINGLE|RB_ASKNAME;
        }
 #endif
                        howto = RB_SINGLE|RB_ASKNAME;
        }
 #endif
-       retry = 0;
        for (;;) {
                if (howto & RB_ASKNAME) {
                        printf(": ");
        for (;;) {
                if (howto & RB_ASKNAME) {
                        printf(": ");
@@ -56,14 +57,15 @@ main()
                        printf(": %s\n", line);
                io = open(line, 0);
                if (io >= 0)
                        printf(": %s\n", line);
                io = open(line, 0);
                if (io >= 0)
-                       copyunix(io);
+                       copyunix(howto, io);
                if (++retry > 2)
                        howto = RB_SINGLE|RB_ASKNAME;
        }
 }
 
                if (++retry > 2)
                        howto = RB_SINGLE|RB_ASKNAME;
        }
 }
 
-copyunix(io)
-       register io;
+/*ARGSUSED*/
+copyunix(howto, io)
+       register howto, io;
 {
        struct exec x;
        register int i;
 {
        struct exec x;
        register int i;