diff options
Diffstat (limited to 'stdio-common/tst-fgets.c')
-rw-r--r-- | stdio-common/tst-fgets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/tst-fgets.c b/stdio-common/tst-fgets.c index b8e205c7dc..0aa9030e3a 100644 --- a/stdio-common/tst-fgets.c +++ b/stdio-common/tst-fgets.c @@ -5,7 +5,7 @@ static int do_test (void) { - FILE *fp = fmemopen ("hello", 5, "r"); + FILE *fp = fmemopen ((char *) "hello", 5, "r"); char buf[2]; char *bp = fgets (buf, sizeof (buf), fp); printf ("fgets: %s\n", bp == buf ? "OK" : "ERROR"); |