Commit b75bec94 by Kirill A. Shutemov Committed by Vicent Marti

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>
parent 0cbbdc26
......@@ -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 */
......
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