]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/fflush.c
Minimize the amount of internal definitions which get exposed via the user-visible...
[pdclib.old] / functions / stdio / fflush.c
index df458804dc3099274f024286c3c55db2091418d8..e03079fcc9c17fdf661a961b77fdbec46cbbab60 100644 (file)
@@ -9,11 +9,11 @@
 #include <stdio.h>
 
 #ifndef REGTEST
-#include <_PDCLIB_glue.h>
+#include <_PDCLIB_io.h>
 
-extern struct _PDCLIB_file_t * _PDCLIB_filelist;
+extern FILE * _PDCLIB_filelist;
 
-int fflush_unlocked( struct _PDCLIB_file_t * stream )
+int fflush_unlocked( FILE * stream )
 {
     if ( stream == NULL )
     {
@@ -39,7 +39,7 @@ int fflush_unlocked( struct _PDCLIB_file_t * stream )
     }
 }
 
-int fflush( struct _PDCLIB_file_t * stream )
+int fflush( FILE * stream )
 {
     flockfile( stream );
     int res = fflush_unlocked(stream);