geteblk needs a constant
authorBill Joy <root@ucbvax.Berkeley.EDU>
Tue, 15 Jun 1982 13:43:57 +0000 (05:43 -0800)
committerBill Joy <root@ucbvax.Berkeley.EDU>
Tue, 15 Jun 1982 13:43:57 +0000 (05:43 -0800)
SCCS-vsn: sys/vax/vax/flp.c 4.6
SCCS-vsn: sys/vax/uba/lp.c 4.25

usr/src/sys/vax/uba/lp.c
usr/src/sys/vax/vax/flp.c

index d43251d..3f81b69 100644 (file)
@@ -1,4 +1,4 @@
-/*     lp.c    4.24    82/05/04        */
+/*     lp.c    4.25    82/06/14        */
 
 #include "lp.h"
 #if NLP > 0
 
 #include "lp.h"
 #if NLP > 0
@@ -121,7 +121,7 @@ lpopen(dev, flag)
                return;
        }
        sc->sc_state |= OPEN;
                return;
        }
        sc->sc_state |= OPEN;
-       sc->sc_inbuf = geteblk();
+       sc->sc_inbuf = geteblk(512);
        sc->sc_flags = minor(dev) & 07;
        (void) spl4();
        if ((sc->sc_state&TOUT) == 0) {
        sc->sc_flags = minor(dev) & 07;
        (void) spl4();
        if ((sc->sc_state&TOUT) == 0) {
@@ -151,7 +151,7 @@ lpwrite(dev)
        register char *cp;
        register struct lp_softc *sc = &lp_softc[LPUNIT(dev)];
 
        register char *cp;
        register struct lp_softc *sc = &lp_softc[LPUNIT(dev)];
 
-       while (n = min(BSIZE, u.u_count)) {
+       while (n = min(512, u.u_count)) {
                cp = sc->sc_inbuf->b_un.b_addr;
                iomove(cp, n, B_WRITE);
                do
                cp = sc->sc_inbuf->b_un.b_addr;
                iomove(cp, n, B_WRITE);
                do
index 34264e2..b9d394d 100644 (file)
@@ -1,4 +1,4 @@
-/*     flp.c   4.5     81/03/09        */
+/*     flp.c   4.6     82/06/14        */
 
 #if VAX780
 #include "../h/flp.h"
 
 #if VAX780
 #include "../h/flp.h"
@@ -38,7 +38,7 @@ flopen(dev, flag)
                return;
        }
        fltab.fl_state = FL_OPEN;
                return;
        }
        fltab.fl_state = FL_OPEN;
-       fltab.fl_buf = geteblk();
+       fltab.fl_buf = geteblk(512);
        fltab.fl_active = FL_IDLE;
 }
 
        fltab.fl_active = FL_IDLE;
 }