Instead of hardcoding PF_SEEK_* constants use SEEK_* values from stdio.h.
authorHelmut Eller <eller.helmut@gmail.com>
Mon, 12 Dec 2016 15:39:17 +0000 (16:39 +0100)
committerHelmut Eller <eller.helmut@gmail.com>
Mon, 12 Dec 2016 15:49:13 +0000 (16:49 +0100)
csrc/pf_io.h

index e03b034..c105e7a 100644 (file)
@@ -132,9 +132,9 @@ void ioTerm( void );
         #define PF_STDIN  ((FileStream *) stdin)
         #define PF_STDOUT ((FileStream *) stdout)
 
         #define PF_STDIN  ((FileStream *) stdin)
         #define PF_STDOUT ((FileStream *) stdout)
 
-        #define  PF_SEEK_SET   (0)
-        #define  PF_SEEK_CUR   (1)
-        #define  PF_SEEK_END   (2)
+        #define  PF_SEEK_SET   (SEEK_SET)
+        #define  PF_SEEK_CUR   (SEEK_CUR)
+        #define  PF_SEEK_END   (SEEK_END)
 
         /*
         ** printf() is only used for debugging purposes.
 
         /*
         ** printf() is only used for debugging purposes.