diff options
author | Cyril Brulebois <kibi@debian.org> | 2012-08-31 14:11:43 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2012-08-31 14:11:43 +0000 |
commit | 9c433313828fca7a0d3aa2771650bc2a72095615 (patch) | |
tree | b6a4941c5fd8844679faaa31b12fcd926068bf47 /src/lempar.c | |
parent | b6b6eda29222ce02da3e1016e4e9907bd663c5d1 (diff) | |
download | lighttpd-git-9c433313828fca7a0d3aa2771650bc2a72095615.tar.gz |
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 <kibi@debian.org>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2845 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/lempar.c')
-rw-r--r-- | src/lempar.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <stdio.h> -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); } |