diff options
| author | Kirill A. Shutemov <kirill@shutemov.name> | 2011-07-15 18:24:35 +0300 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-07-25 21:12:47 +0200 |
| commit | b75bec94f816a97a3e610bed9f813112e9f316a9 (patch) | |
| tree | 6bce133accdcbab2be602fc7de1e17df60cf28c8 /src | |
| parent | 0cbbdc26a975ef73bba1f7161bd9c7313d5cab24 (diff) | |
| download | libgit2-b75bec94f816a97a3e610bed9f813112e9f316a9.tar.gz | |
refs: fix cast warning
/home/kas/git/public/libgit2/src/refs.c: In function ‘normalize_name’:
/home/kas/git/public/libgit2/src/refs.c:1681:12: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Diffstat (limited to 'src')
| -rw-r--r-- | src/refs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/refs.c b/src/refs.c index 8022c2b2a..e2d5f66e7 100644 --- a/src/refs.c +++ b/src/refs.c @@ -1679,13 +1679,13 @@ static int check_valid_ref_char(char ch) static int normalize_name(char *buffer_out, size_t out_size, const char *name, int is_oid_ref) { const char *name_end, *buffer_out_start; - char *current; + const char *current; int contains_a_slash = 0; assert(name && buffer_out); buffer_out_start = buffer_out; - current = (char *)name; + current = name; name_end = name + strlen(name); /* Terminating null byte */ |
