]> granicus.if.org Git - php/commitdiff
fpos_t should have been off_t.
authorWez Furlong <wez@php.net>
Mon, 23 Dec 2002 02:55:29 +0000 (02:55 +0000)
committerWez Furlong <wez@php.net>
Mon, 23 Dec 2002 02:55:29 +0000 (02:55 +0000)
Noticed by Philip Olson.

main/streams.c

index 1f84f4a9eea762ae0b178cd305b2709e6a24a3c6..35f5161e68ef71ddbb62ad9ce40a8ffa79df6ee1 100755 (executable)
@@ -2418,7 +2418,7 @@ PHPAPI php_stream *_php_stream_open_wrapper_ex(char *path, char *mode, int optio
        }
 
        if (stream && stream->ops->seek && (stream->flags & PHP_STREAM_FLAG_NO_SEEK) == 0 && strchr(mode, 'a')) {
-               fpos_t newpos = 0;
+               off_t newpos = 0;
 
                /* if opened for append, we need to revise our idea of the initial file position */
                if (0 == stream->ops->seek(stream, 0, SEEK_CUR, &newpos TSRMLS_CC)) {