diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-01-18 15:41:20 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-01-24 15:12:56 -0600 |
commit | 9893d376eea1624870a844ef6644c837062b1751 (patch) | |
tree | 1a445664738e67bbbd3d8bc3e6cc2858038fad4f /src/attrcache.c | |
parent | 4460bf40c9e935acb853b5d61279a50014ede0b3 (diff) | |
download | libgit2-9893d376eea1624870a844ef6644c837062b1751.tar.gz |
git_attr_cache_flush: return an int
Stop returning a void for functions, future-proofing them to allow them
to fail.
Diffstat (limited to 'src/attrcache.c')
-rw-r--r-- | src/attrcache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/attrcache.c b/src/attrcache.c index 21a1fea24..f02dd9d1d 100644 --- a/src/attrcache.c +++ b/src/attrcache.c @@ -411,7 +411,7 @@ cancel: return ret; } -void git_attr_cache_flush(git_repository *repo) +int git_attr_cache_flush(git_repository *repo) { git_attr_cache *cache; @@ -420,6 +420,8 @@ void git_attr_cache_flush(git_repository *repo) */ if (repo && (cache = git__swap(repo->attrcache, NULL)) != NULL) attr_cache__free(cache); + + return 0; } int git_attr_cache__insert_macro(git_repository *repo, git_attr_rule *macro) |