Changeset 7258c6a in buchla-68k for libcio/fseek.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/fseek.c

    r0292fbb r7258c6a  
    1111#include "stddefs.h"
    1212
    13 extern  long    lseek(int fd, long pos, int how);
     13extern  int32_t lseek(int16_t fd, int32_t pos, int16_t how);
    1414
    1515/*
     
    1919*/
    2020
    21 int fseek(FILE *fp, long pos, int mode)
     21int16_t fseek(FILE *fp, int32_t pos, int16_t mode)
    2222{
    23         register int i, lr;
    24         long curpos;
     23        register int16_t i, lr;
     24        int32_t curpos;
    2525
    2626        if (fp->_flags & _DIRTY) {
     
    3232
    3333                if (mode EQ 1 AND fp->_bp)
    34                         pos -= (long)fp->_bend - (long)fp->_bp;
     34                        pos -= (int32_t)fp->_bend - (int32_t)fp->_bp;
    3535        }
    3636
Note: See TracChangeset for help on using the changeset viewer.