From: Matthew Fernandez Date: Thu, 19 Jan 2023 15:59:51 +0000 (-0800) Subject: sfio: remove some open coded nulls X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58bfbe149621a50df0b0a33339565968a76fc894;p=graphviz sfio: remove some open coded nulls --- diff --git a/lib/ast/sfstr.h b/lib/ast/sfstr.h index 3dc681ae9..bc4d48b93 100644 --- a/lib/ast/sfstr.h +++ b/lib/ast/sfstr.h @@ -10,6 +10,8 @@ #pragma once +#include + #ifdef __cplusplus extern "C" { #endif @@ -20,7 +22,7 @@ extern "C" { #include -#define sfstropen() sfnew((Sfio_t*)0,(char*)0,-1,-1,SF_WRITE|SF_STRING) +#define sfstropen() sfnew(NULL, NULL, -1, -1, SF_WRITE | SF_STRING) #define sfstrclose(f) sfclose(f) #define sfstruse(f) (sfputc(f,0), (char*)((f)->next = (f)->data) )