diff options
author | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2015-05-13 06:21:12 +0000 |
---|---|---|
committer | Yury G. Kudryashov <urkud@urkud.name> | 2015-05-15 00:34:43 +0300 |
commit | c8022e6ce7c9fe5e57c69ab8d88c9ed53276fa1b (patch) | |
tree | 3c638ff5b1999a2e98e552b6d3c89c1591f8afad | |
parent | f85a9c2767b43f35904bf39858488a4b7bc304e8 (diff) | |
download | libgit2-c8022e6ce7c9fe5e57c69ab8d88c9ed53276fa1b.tar.gz |
Add `const` qualifier
This fixes a warning in `examples/describe.c` without breaking the main build.
OTOH, I'm not sure if this is an API-compatible change.
-rw-r--r-- | include/git2/describe.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/describe.h b/include/git2/describe.h index d01a3f74c..3044d9165 100644 --- a/include/git2/describe.h +++ b/include/git2/describe.h @@ -94,7 +94,7 @@ typedef struct { * If the workdir is dirty and this is set, this string will * be appended to the description string. */ - char *dirty_suffix; + const char *dirty_suffix; } git_describe_format_options; #define GIT_DESCRIBE_FORMAT_OPTIONS_VERSION 1 |