Commit 1118dd9a by Edward Thomson

examples: don't lose `const`

parent ede458b4
......@@ -54,7 +54,7 @@ static void opts_add_commit(describe_options *opts, const char *commit)
assert(opts != NULL);
sz = ++opts->commit_count * sizeof(opts->commits[0]);
opts->commits = xrealloc(opts->commits, sz);
opts->commits = (const char **)xrealloc(opts->commits, sz);
opts->commits[opts->commit_count - 1] = commit;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment