diff options
author | Michael McConville <mmcconville@mykolab.com> | 2015-12-07 19:44:10 -0500 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2015-12-07 21:28:21 -0500 |
commit | c03bef5411d3231f42445932d1971d656f020817 (patch) | |
tree | 90040d0915d1bd68db3a70fc011d56135909eaaa /tests/bison_yylval_scanner.l | |
parent | 53e3088d75eb966101e4f229a0fe8e0fdd73ab7e (diff) |
Remove allocation casts
Diffstat (limited to 'tests/bison_yylval_scanner.l')
-rw-r--r-- | tests/bison_yylval_scanner.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bison_yylval_scanner.l b/tests/bison_yylval_scanner.l index db99fa0..1e93fc1 100644 --- a/tests/bison_yylval_scanner.l +++ b/tests/bison_yylval_scanner.l @@ -75,7 +75,7 @@ enum yesno_t { no=0, yes=1 }; static char* STRDUP(char* s1) { - char* s2 = (char*)malloc(strlen(s1)+1); + char* s2 = malloc(strlen(s1)+1); sprintf(s2,"%s",s1); return s2; } |