diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-25 14:50:12 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-25 15:22:46 +0100 |
| commit | 1118dd9a40ad2c443a047cbec4d9669bad9ee954 (patch) | |
| tree | 88aa6eb5eec7a19c84fe126a2653afd0fcc8d981 /examples | |
| parent | ede458b4e4a21e4cf54a0c6628cfc349db63ef6c (diff) | |
| download | libgit2-1118dd9a40ad2c443a047cbec4d9669bad9ee954.tar.gz | |
examples: don't lose `const`
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/describe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/describe.c b/examples/describe.c index 2d953127d..0437ca17e 100644 --- a/examples/describe.c +++ b/examples/describe.c @@ -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; } |
