make fblk an unsigned to prevent illegal negative numbers
authorKirk McKusick <mckusic@ucbvax.Berkeley.EDU>
Mon, 15 Jun 1981 14:58:35 +0000 (06:58 -0800)
committerKirk McKusick <mckusic@ucbvax.Berkeley.EDU>
Mon, 15 Jun 1981 14:58:35 +0000 (06:58 -0800)
SCCS-vsn: usr.bin/pascal/libpc/h00vars.h 1.8

usr/src/usr.bin/pascal/libpc/h00vars.h

index 231b25b..a7afb14 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (c) 1979 Regents of the University of California */
 
 /* Copyright (c) 1979 Regents of the University of California */
 
-/* sccsid[] = "@(#)h00vars.h 1.7 %G%"; */
+/* sccsid[] = "@(#)h00vars.h 1.8 %G%"; */
 
 #include <stdio.h>
 #include "whoami.h"
 
 #include <stdio.h>
 #include "whoami.h"
@@ -73,7 +73,7 @@ struct iorechd {
        struct iorec    *flev;          /* ptr to associated file variable */
        char            *pfname;        /* ptr to name of file */
        short           funit;          /* file status flags */
        struct iorec    *flev;          /* ptr to associated file variable */
        char            *pfname;        /* ptr to name of file */
        short           funit;          /* file status flags */
-       short           fblk;           /* index into active file table */
+       unsigned short  fblk;           /* index into active file table */
        long            fsize;          /* size of elements in the file */
        char            fname[NAMSIZ];  /* name of associated UNIX file */
 };
        long            fsize;          /* size of elements in the file */
        char            fname[NAMSIZ];  /* name of associated UNIX file */
 };
@@ -87,7 +87,7 @@ struct iorec {
        struct iorec    *flev;          /* ptr to associated file variable */
        char            *pfname;        /* ptr to name of file */
        short           funit;          /* file status flags */
        struct iorec    *flev;          /* ptr to associated file variable */
        char            *pfname;        /* ptr to name of file */
        short           funit;          /* file status flags */
-       short           fblk;           /* index into active file table */
+       unsigned short  fblk;           /* index into active file table */
        long            fsize;          /* size of elements in the file */
        char            fname[NAMSIZ];  /* name of associated UNIX file */
        char            buf[BUFSIZ];    /* I/O buffer */
        long            fsize;          /* size of elements in the file */
        char            fname[NAMSIZ];  /* name of associated UNIX file */
        char            buf[BUFSIZ];    /* I/O buffer */