tish, tish. mike never tested his previous changes.
authorThomas Ferrin <tef@ucbvax.Berkeley.EDU>
Thu, 1 Sep 1988 01:22:27 +0000 (17:22 -0800)
committerThomas Ferrin <tef@ucbvax.Berkeley.EDU>
Thu, 1 Sep 1988 01:22:27 +0000 (17:22 -0800)
SCCS-vsn: sys/vax/vax/swapgeneric.c 7.6

usr/src/sys/vax/vax/swapgeneric.c

index 2c8e838..fc06c57 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)swapgeneric.c       7.5 (Berkeley) %G%
+ *     @(#)swapgeneric.c       7.6 (Berkeley) %G%
  */
 
 #include "mba.h"
  */
 
 #include "mba.h"
@@ -82,13 +82,13 @@ retry:
                gets(name);
                for (gc = genericconf; gc->gc_driver; gc++)
                    for (cp = name, gp = gc->gc_name; *cp == *gp; cp++, gp++)
                gets(name);
                for (gc = genericconf; gc->gc_driver; gc++)
                    for (cp = name, gp = gc->gc_name; *cp == *gp; cp++, gp++)
-                       if (*gp == 0)
+                       if (*++gp == 0)
                                goto gotit;
                printf(
                  "use hp%%d, up%%d, ra%%d, rb%%d, rl%%d, hk%%d or kra%%d\n");
                goto retry;
 gotit:
                                goto gotit;
                printf(
                  "use hp%%d, up%%d, ra%%d, rb%%d, rl%%d, hk%%d or kra%%d\n");
                goto retry;
 gotit:
-               if (*cp < '0' || *cp > '9') {
+               if (*++cp < '0' || *cp > '9') {
                        printf("bad/missing unit number\n");
                        goto retry;
                }
                        printf("bad/missing unit number\n");
                        goto retry;
                }