Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > d397a68e65831ae3c6df720a93c0dc88 > files > 4

w3m-0.5.3-4.mga3.src.rpm

diff -p -up w3m-0.5.3/istream.cfoo w3m-0.5.3/istream.c
--- w3m-0.5.3/istream.cfoo	2012-12-02 01:25:40.415296955 +0000
+++ w3m-0.5.3/istream.c	2012-12-02 01:28:00.408419876 +0000
@@ -22,8 +22,8 @@
 static void basic_close(int *handle);
 static int basic_read(int *handle, char *buf, int len);
 
-static void file_close(struct file_handle *handle);
-static int file_read(struct file_handle *handle, char *buf, int len);
+static void file_close(struct file_foo *handle);
+static int file_read(struct file_foo *handle, char *buf, int len);
 
 static int str_read(Str handle, char *buf, int len);
 
@@ -114,7 +114,7 @@ newFileStream(FILE * f, void (*closep) (
     stream = New(union input_stream);
     init_base_stream(&stream->base, STREAM_BUF_SIZE);
     stream->file.type = IST_FILE;
-    stream->file.handle = New(struct file_handle);
+    stream->file.handle = New(struct file_foo);
     stream->file.handle->f = f;
     if (closep)
 	stream->file.handle->close = closep;
@@ -658,13 +658,13 @@ basic_read(int *handle, char *buf, int l
 }
 
 static void
-file_close(struct file_handle *handle)
+file_close(struct file_foo *handle)
 {
     handle->close(handle->f);
 }
 
 static int
-file_read(struct file_handle *handle, char *buf, int len)
+file_read(struct file_foo *handle, char *buf, int len)
 {
     return fread(buf, 1, len, handle->f);
 }
diff -p -up w3m-0.5.3/istream.hfoo w3m-0.5.3/istream.h
--- w3m-0.5.3/istream.hfoo	2003-10-20 16:41:56.000000000 +0000
+++ w3m-0.5.3/istream.h	2012-12-02 01:28:00.408419876 +0000
@@ -20,7 +20,7 @@ struct stream_buffer {
 
 typedef struct stream_buffer *StreamBuffer;
 
-struct file_handle {
+struct file_foo {
     FILE *f;
     void (*close) ();
 };
@@ -53,7 +53,7 @@ struct base_stream {
 
 struct file_stream {
     struct stream_buffer stream;
-    struct file_handle *handle;
+    struct file_foo *handle;
     char type;
     char iseos;
     int (*read) ();