Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset cfbb5d18 in mainline


Ignore:
Timestamp:
2011-07-21T22:32:11Z (10 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master
Children:
65b4aac1, d43c117, eccd20e6
Parents:
a12f7f1
Message:

Correction of fgetpos().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/stdio.c

    ra12f7f1 rcfbb5d18  
    355355{
    356356        off64_t ret = ftell(stream);
    357         if (ret == -1) {
    358                 return errno;
    359         }
    360         pos->offset = ret;
    361         return 0;
     357        if (ret != -1) {
     358                pos->offset = ret;
     359                return 0;
     360        } else {
     361                return -1;
     362        }
    362363}
    363364
Note: See TracChangeset for help on using the changeset viewer.