summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMichael McConville <mmcconville@mykolab.com>2015-12-05 18:00:12 -0500
committerWill Estes <westes575@gmail.com>2015-12-05 18:50:53 -0500
commite0877888da128c7a1fcb24f5a7b5959c54631e18 (patch)
tree01840925f9868764a6e15c6bb3a4b281127f42d9 /src/main.c
parent3a1d84cfc0988a3dbdba7a440571e987cb68973a (diff)
Use NULL rather than (type *) 0.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 7d45cb3..4c6ac34 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1451,9 +1451,9 @@ void readin (void)
{
static char yy_stdinit[] = "FILE *yyin = stdin, *yyout = stdout;";
static char yy_nostdinit[] =
- "FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;";
+ "FILE *yyin = NULL, *yyout = NULL;";
- line_directive_out ((FILE *) 0, 1);
+ line_directive_out(NULL, 1);
if (yyparse ()) {
pinpoint_message (_("fatal parse error"));
@@ -1760,7 +1760,7 @@ void set_up_initial_allocations (void)
dss = allocate_int_ptr_array (current_max_dfas);
dfaacc = allocate_dfaacc_union (current_max_dfas);
- nultrans = (int *) 0;
+ nultrans = NULL;
}