From 58bfbe149621a50df0b0a33339565968a76fc894 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 19 Jan 2023 07:59:51 -0800 Subject: [PATCH] sfio: remove some open coded nulls --- lib/ast/sfstr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) ) -- 2.40.0