summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index e6716eb..f60a963 100644
--- a/parse.c
+++ b/parse.c
@@ -264,7 +264,7 @@ int free_cmdline(struct cmdline *cmdline) {
struct trie_leaf *leaf;
while ((leaf = trie_first_leaf(&cmdline->open_files))) {
- struct open_file *ofile = (struct open_file *)leaf->value;
+ struct open_file *ofile = leaf->value;
if (cfclose(ofile->cfile) != 0) {
if (cerr) {
@@ -429,7 +429,7 @@ static int expr_open(struct parser_state *state, struct expr *expr, const char *
struct trie_leaf *leaf = trie_insert_mem(&cmdline->open_files, id, sizeof(id));
if (leaf->value) {
- struct open_file *ofile = (struct open_file *)leaf->value;
+ struct open_file *ofile = leaf->value;
expr->cfile = ofile->cfile;
ret = 0;
goto out_close;