cast variable in call to free() in builtin/diff.c and submodule.c
[gitweb.git] / submodule.c
index ad86534ba1e1e1726fd6427c65182ba954957904..09181ff6e575d5aa5e2fa850bc794fac5953587d 100644 (file)
@@ -385,7 +385,7 @@ static void commit_need_pushing(struct commit *commit, struct commit_list *paren
        rev.diffopt.format_callback_data = needs_pushing;
        diff_tree_combined(commit->object.sha1, parents, n, 1, &rev);
 
-       free(parents);
+       free((void *)parents);
 }
 
 int check_submodule_needs_pushing(unsigned char new_sha1[20], const char *remotes_name)