fix usage of locks with vfork
[musl] / src / stdio / fmemopen.c
index 1b054a9..770fd99 100644 (file)
@@ -67,7 +67,7 @@ static int mclose(FILE *m)
        return 0;
 }
 
-FILE *fmemopen(void *buf, size_t size, const char *mode)
+FILE *fmemopen(void *restrict buf, size_t size, const char *restrict mode)
 {
        FILE *f;
        struct cookie *c;