f_back (f/runtime/libI77/backspace.c): use type `uiolen' to determine size of record length specifier.

* f_back (f/runtime/libI77/backspace.c): use type `uiolen'
to determine size of record length specifier.

From-SVN: r17414
This commit is contained in:
Toon Moene 1998-01-18 21:02:04 +01:00 committed by Richard Henderson
parent 30c2fa7578
commit 94f09d6b40
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Sun Jan 18 20:01:37 1998 Toon Moene <toon@moene.indiv.nluug.nl>
* f_back (f/runtime/libI77/backspace.c): use type `uiolen'
to determine size of record length specifier.
Sat Jan 17 22:40:31 1998 Mumit Khan <khan@xraylith.wisc.edu>
* libU77/configure.in (sys/param.h,sys/times.h): Check.

View File

@ -7,7 +7,8 @@ integer f_back(a) alist *a;
integer f_back(alist *a)
#endif
{ unit *b;
int i, n, ndec;
int i, ndec;
uiolen n;
#if defined (MSDOS) && !defined (GO32)
int j, k;
long w, z;
@ -45,9 +46,9 @@ integer f_back(alist *a)
}
if(b->ufmt==0)
{ (void) fseek(b->ufd,-(long)sizeof(int),SEEK_CUR);
{ (void) fseek(b->ufd,-(long)sizeof(uiolen),SEEK_CUR);
(void) fread((char *)&n,sizeof(int),1,b->ufd);
(void) fseek(b->ufd,-(long)n-2*sizeof(int),SEEK_CUR);
(void) fseek(b->ufd,-(long)n-2*sizeof(uiolen),SEEK_CUR);
return(0);
}
#if defined (MSDOS) && !defined (GO32)