summaryrefslogtreecommitdiff
path: root/builtin-check-attr.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-01-16 20:39:59 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-01-16 20:39:59 -0800
commit7fb0eaa289576a1dcd7751015ba791f1bce778a9 (patch)
tree76431538981b60bd62b95c810f3a18fe77f39355 /builtin-check-attr.c
parentrerere forget path: forget recorded resolution (diff)
downloadtgif-7fb0eaa289576a1dcd7751015ba791f1bce778a9.tar.xz
git_attr(): fix function signature
The function took (name, namelen) as its arguments, but all the public callers wanted to pass a full string. Demote the counted-string interface to an internal API status, and allow public callers to just pass the string to the function. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-check-attr.c')
-rw-r--r--builtin-check-attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-check-attr.c b/builtin-check-attr.c
index 8bd0430098..3016d29caa 100644
--- a/builtin-check-attr.c
+++ b/builtin-check-attr.c
@@ -106,7 +106,7 @@ int cmd_check_attr(int argc, const char **argv, const char *prefix)
const char *name;
struct git_attr *a;
name = argv[i];
- a = git_attr(name, strlen(name));
+ a = git_attr(name);
if (!a)
return error("%s: not a valid attribute name", name);
check[i].attr = a;