]> granicus.if.org Git - graphviz/commitdiff
swap some use of hand rolled NIL for the standard NULL
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 6 Apr 2021 02:56:19 +0000 (19:56 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 17 Apr 2021 20:21:54 +0000 (13:21 -0700)
lib/sfio/sfextern.c

index cd34e20e15a64d80922574f1bad826c91895f536..fcf4f3992bc6e599b041f26e65dbbf1a087d0493 100644 (file)
@@ -9,6 +9,7 @@
  *************************************************************************/
 
 #include       <sfio/sfhdr.h>
+#include       <stddef.h>
 
 /*     External variables and functions used only by Sfio
 **     Written by Kiem-Phong Vo
@@ -24,15 +25,12 @@ ssize_t _Sfi = -1;
 #define SFMTXOUT       (0)
 #define SFMTXERR       (0)
 
-Sfio_t _Sfstdin = SFNEW(NIL(char *), -1, 0,
-                       (SF_READ | SF_STATIC | SF_MTSAFE), NIL(Sfdisc_t *),
+Sfio_t _Sfstdin = SFNEW(NULL, -1, 0, (SF_READ | SF_STATIC | SF_MTSAFE), NULL,
                        SFMTXIN);
-Sfio_t _Sfstdout = SFNEW(NIL(char *), -1, 1,
-                        (SF_WRITE | SF_STATIC | SF_MTSAFE),
-                        NIL(Sfdisc_t *), SFMTXOUT);
-Sfio_t _Sfstderr = SFNEW(NIL(char *), -1, 2,
-                        (SF_WRITE | SF_STATIC | SF_MTSAFE),
-                        NIL(Sfdisc_t *), SFMTXERR);
+Sfio_t _Sfstdout = SFNEW(NULL, -1, 1, (SF_WRITE | SF_STATIC | SF_MTSAFE), NULL,
+                       SFMTXOUT);
+Sfio_t _Sfstderr = SFNEW(NULL, -1, 2, (SF_WRITE | SF_STATIC | SF_MTSAFE), NULL,
+                       SFMTXERR);
 
 Sfio_t *sfstdin = &_Sfstdin;
 Sfio_t *sfstdout = &_Sfstdout;