wez             Sun Dec 22 21:55:29 2002 EDT

  Modified files:              (Branch: PHP_4_3)
    /php4/main  streams.c 
  Log:
  fpos_t should have been off_t.
  Noticed by Philip Olson.
  
  
Index: php4/main/streams.c
diff -u php4/main/streams.c:1.125.2.22 php4/main/streams.c:1.125.2.23
--- php4/main/streams.c:1.125.2.22      Sun Dec 22 13:21:55 2002
+++ php4/main/streams.c Sun Dec 22 21:55:29 2002
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: streams.c,v 1.125.2.22 2002/12/22 18:21:55 wez Exp $ */
+/* $Id: streams.c,v 1.125.2.23 2002/12/23 02:55:29 wez Exp $ */
 
 #define _GNU_SOURCE
 #include "php.h"
@@ -2418,7 +2418,7 @@
        }
 
        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)) {



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to