about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-06 23:27:55 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-06 23:27:55 -0400
commit453059571c9dc84dd168631eced25ec2d7afd98e (patch)
tree9a7a46fa3abf334b2fd5dd28ea04a4f69c17ecb9
parentc8ea985748a6857ac5db9ef50f9c92e2966c04d5 (diff)
downloadmusl-453059571c9dc84dd168631eced25ec2d7afd98e.tar.gz
musl-453059571c9dc84dd168631eced25ec2d7afd98e.tar.xz
musl-453059571c9dc84dd168631eced25ec2d7afd98e.zip
fix invalid implicit pointer conversion in gnulib-compat functions
-rw-r--r--src/stdio/ext2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/ext2.c b/src/stdio/ext2.c
index e587d64b..f359be9a 100644
--- a/src/stdio/ext2.c
+++ b/src/stdio/ext2.c
@@ -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)