fix invalid implicit pointer conversion in gnulib-compat functions
authorRich Felker <dalias@aerifal.cx>
Fri, 7 Sep 2012 03:27:55 +0000 (23:27 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 7 Sep 2012 03:27:55 +0000 (23:27 -0400)
src/stdio/ext2.c

index e587d64b2b52e32af33afefc4afc0624a1ba76fb..f359be9af7622dbcadc42b2372839136970732a9 100644 (file)
@@ -10,7 +10,7 @@ const char *__freadptr(FILE *f, size_t *sizep)
        size_t size = f->rend - f->rpos;
        if (!size) return 0;
        *sizep = size;
-       return f->rpos;
+       return (const char *)f->rpos;
 }
 
 void __freadptrinc(FILE *f, size_t inc)