diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-03-14 22:07:14 +0400 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-14 22:07:14 +0400 |
commit | ab43ad2fd822504446e7876d6352c968a74beb53 (patch) | |
tree | f18b845bcfa83c72f4b4b3e1cedd0efb79f56691 /src/attr_file.h | |
parent | e3c475107045cb89c53c114716bafebc7538433f (diff) |
Convert attr and other files to new errors
This continues to add other files to the new error handling
style. I think the only real concerns here are that there are
a couple of error return cases that I have converted to asserts,
but I think that it was the correct thing to do given the new
error style.
Diffstat (limited to 'src/attr_file.h')
-rw-r--r-- | src/attr_file.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/attr_file.h b/src/attr_file.h index 1ba18f9e4..6284c5386 100644 --- a/src/attr_file.h +++ b/src/attr_file.h @@ -82,7 +82,7 @@ extern int git_attr_file__lookup_one( /* loop over rules in file from bottom to top */ #define git_attr_file__foreach_matching_rule(file, path, iter, rule) \ git_vector_rforeach(&(file)->rules, (iter), (rule)) \ - if (git_attr_rule__match((rule), (path)) == GIT_SUCCESS) + if (git_attr_rule__match((rule), (path))) extern unsigned long git_attr_file__name_hash(const char *name); @@ -96,13 +96,13 @@ extern int git_attr_fnmatch__parse( const char *source, const char **base); -extern int git_attr_fnmatch__match( +extern bool git_attr_fnmatch__match( git_attr_fnmatch *rule, const git_attr_path *path); extern void git_attr_rule__free(git_attr_rule *rule); -extern int git_attr_rule__match( +extern bool git_attr_rule__match( git_attr_rule *rule, const git_attr_path *path); |