pike.git / src / post_modules / Shuffler / a_source_stdio_buffer.c

version» Context lines:

pike.git/src/post_modules/Shuffler/a_source_stdio_buffer.c:28:       struct object *obj;   };      static struct data get_data( struct source *src, off_t len )   {    struct sb_source *s = (struct sb_source *)src;    struct data res;    Buffer *io = io_buffer_from_object(s->obj);    -  res.data = io_read_pointer(io); +  res.data = (char*)io_read_pointer(io);    res.len = io_len(io);    s->s.eof = 1;    return res;   }      static void free_source( struct source *src )   {    struct sb_source *s = (struct sb_source *)src;    free_object(s->obj);   }