attr.c: tighten constness around "git_attr" structure
[git/git.git] / attr.c
diff --git a/attr.c b/attr.c
index e42f931..f7cf7ae 100644 (file)
--- a/attr.c
+++ b/attr.c
@@ -43,7 +43,7 @@ static int cannot_trust_maybe_real;
 static struct git_attr_check *check_all_attr;
 static struct git_attr *(git_attr_hash[HASHSIZE]);
 
-char *git_attr_name(struct git_attr *attr)
+const char *git_attr_name(const struct git_attr *attr)
 {
        return attr->name;
 }