aboutsummaryrefslogtreecommitdiff
path: root/contrib/byacc/btyaccpar.skel
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/byacc/btyaccpar.skel')
-rw-r--r--contrib/byacc/btyaccpar.skel8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/byacc/btyaccpar.skel b/contrib/byacc/btyaccpar.skel
index 009942ee041f..84ea14846138 100644
--- a/contrib/byacc/btyaccpar.skel
+++ b/contrib/byacc/btyaccpar.skel
@@ -271,14 +271,14 @@ static int yygrowstack(YYSTACKDATA *data)
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
- if (newss == 0)
+ if (newss == NULL)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
- if (newvs == 0)
+ if (newvs == NULL)
return YYENOMEM;
data->l_base = newvs;
@@ -286,7 +286,7 @@ static int yygrowstack(YYSTACKDATA *data)
#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps));
- if (newps == 0)
+ if (newps == NULL)
return YYENOMEM;
data->p_base = newps;
@@ -381,7 +381,7 @@ YYPARSE_DECL()
#if YYDEBUG
const char *yys;
- if ((yys = getenv("YYDEBUG")) != 0)
+ if ((yys = getenv("YYDEBUG")) != NULL)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')