From 9c433313828fca7a0d3aa2771650bc2a72095615 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Fri, 31 Aug 2012 14:11:43 +0000 Subject: Use NULL instead of 0 where pointers are expected. There are 6 remaining occurrences after this commit, in mod_compress, due to zlib's Z_NULL being defined as 0 instead of NULL. Signed-off-by: Cyril Brulebois git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2845 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/lempar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lempar.c') diff --git a/src/lempar.c b/src/lempar.c index 26708ea7..ef9bd94f 100644 --- a/src/lempar.c +++ b/src/lempar.c @@ -158,8 +158,8 @@ typedef struct yyParser yyParser; #ifndef NDEBUG #include -static FILE *yyTraceFILE = 0; -static char *yyTracePrompt = 0; +static FILE *yyTraceFILE = NULL; +static char *yyTracePrompt = NULL; #endif /* NDEBUG */ #ifndef NDEBUG @@ -310,7 +310,7 @@ void ParseFree( void (*freeProc)(void*) /* Function used to reclaim memory */ ){ yyParser *pParser = (yyParser*)p; - if( pParser==0 ) return; + if( pParser==NULL ) return; while( pParser->yyidx>=0 ) yy_pop_parser_stack(pParser); (*freeProc)((void*)pParser); } -- cgit v1.2.1