summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMichael McConville <mmcconville@mykolab.com>2015-12-07 19:44:10 -0500
committerWill Estes <westes575@gmail.com>2015-12-07 21:28:21 -0500
commitc03bef5411d3231f42445932d1971d656f020817 (patch)
tree90040d0915d1bd68db3a70fc011d56135909eaaa /src/main.c
parent53e3088d75eb966101e4f229a0fe8e0fdd73ab7e (diff)
Remove allocation casts
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 4c6ac34..ceaef71 100644
--- a/src/main.c
+++ b/src/main.c
@@ -392,7 +392,7 @@ void check_options (void)
if (!tablesfilename) {
nbytes = strlen (prefix) + strlen (tablesfile_template) + 2;
- tablesfilename = pname = (char *) calloc (nbytes, 1);
+ tablesfilename = pname = calloc(nbytes, 1);
snprintf (pname, nbytes, tablesfile_template, prefix);
}
@@ -405,7 +405,7 @@ void check_options (void)
yytbl_writer_init (&tableswr, tablesout);
nbytes = strlen (prefix) + strlen ("tables") + 2;
- tablesname = (char *) calloc (nbytes, 1);
+ tablesname = calloc(nbytes, 1);
snprintf (tablesname, nbytes, "%stables", prefix);
yytbl_hdr_init (&hdr, flex_version, tablesname);