summaryrefslogtreecommitdiff
blob: 7a2b0d9cb39e56e7b57a303ca6cf92b9ed5f69aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- a/istream.c
+++ b/istream.c
@@ -132,7 +132,7 @@ newFileStream(FILE *f, void (*closep)())
   stream = New(struct input_stream);
   init_base_stream(stream, STREAM_BUF_SIZE);
   stream->type = IST_FILE;
-  stream->handle.file = New(struct file_handle);
+  stream->handle.file = New(struct afile_handle);
   stream->handle.file->f = f;
 
   if (closep)
--- a/istream.h
+++ b/istream.h
@@ -20,7 +20,7 @@ struct stream_buffer {
 
 typedef struct stream_buffer *StreamBuffer;
 
-struct file_handle {
+struct afile_handle {
   FILE *f;
   void (*close)(FILE *);
 };
@@ -121,7 +121,7 @@ struct tee_handle {
 union input_handle {
   void *gen;
   int fd;
-  struct file_handle *file;
+  struct afile_handle *file;
   struct delimited_handle *delimited;
   Str str;
 #ifdef USE_SSL