clean up handling of thread/nothread mode, locking
[musl] / src / stdio / flockfile.c
index 440a36a..0d4c92c 100644 (file)
@@ -3,9 +3,6 @@
 
 void flockfile(FILE *f)
 {
-       if (!libc.lockfile) {
-               pthread_self();
-               libc.lockfile = __lockfile;
-       }
+       if (!libc.threaded) pthread_self();
        __lockfile(f);
 }