summaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
authorTorsten Bögershausen <tboegi@web.de>2018-09-12 19:32:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-09-12 22:15:34 (GMT)
commitd64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2 (patch)
treeee83da9cbe076b9456d1c04d22ed3d08be2f88dd /attr.c
parent1d4361b0f344188ab5eec6dcea01f61a3a3a1670 (diff)
downloadgit-d64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2.zip
git-d64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2.tar.gz
git-d64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2.tar.bz2
Make git_check_attr() a void function
git_check_attr() returns always 0. Remove all the error handling code of the callers, which is never executed. Change git_check_attr() to be a void function. Signed-off-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'attr.c')
-rw-r--r--attr.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/attr.c b/attr.c
index 98e4953..60d2847 100644
--- a/attr.c
+++ b/attr.c
@@ -1143,9 +1143,9 @@ static void collect_some_attrs(const struct index_state *istate,
fill(path, pathlen, basename_offset, check->stack, check->all_attrs, rem);
}
-int git_check_attr(const struct index_state *istate,
- const char *path,
- struct attr_check *check)
+void git_check_attr(const struct index_state *istate,
+ const char *path,
+ struct attr_check *check)
{
int i;
@@ -1158,8 +1158,6 @@ int git_check_attr(const struct index_state *istate,
value = ATTR__UNSET;
check->items[i].value = value;
}
-
- return 0;
}
void git_all_attrs(const struct index_state *istate,