fix fputwc return value
authorRich Felker <dalias@aerifal.cx>
Mon, 11 Apr 2011 05:52:23 +0000 (01:52 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 11 Apr 2011 05:52:23 +0000 (01:52 -0400)
src/stdio/fputwc.c

index 292a53f..45ea8c2 100644 (file)
@@ -25,7 +25,7 @@ wint_t fputwc(wchar_t c, FILE *f)
        FLOCK(f);
        c = __fputwc_unlocked(c, f);
        FUNLOCK(f);
-       return 0;
+       return c;
 }
 
 weak_alias(__fputwc_unlocked, fputwc_unlocked);