From: Kirk McKusick Date: Mon, 15 Jun 1981 14:58:35 +0000 (-0800) Subject: make fblk an unsigned to prevent illegal negative numbers X-Git-Tag: BSD-4_1_snap-Snapshot-Development~1201 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/9ebeac9bf9ceda4f36a33d83e55ba73f5b44ba4d make fblk an unsigned to prevent illegal negative numbers SCCS-vsn: usr.bin/pascal/libpc/h00vars.h 1.8 --- diff --git a/usr/src/usr.bin/pascal/libpc/h00vars.h b/usr/src/usr.bin/pascal/libpc/h00vars.h index 231b25b178..a7afb1447b 100644 --- a/usr/src/usr.bin/pascal/libpc/h00vars.h +++ b/usr/src/usr.bin/pascal/libpc/h00vars.h @@ -1,6 +1,6 @@ /* Copyright (c) 1979 Regents of the University of California */ -/* sccsid[] = "@(#)h00vars.h 1.7 %G%"; */ +/* sccsid[] = "@(#)h00vars.h 1.8 %G%"; */ #include #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 */ - 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 */ }; @@ -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 */ - 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 */