From 4cae9e712c4c068b01b132e43e8e381078fc4980 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Sat, 18 Jan 2020 18:02:08 +0000 Subject: git_libgit2_version: return an int Stop returning a void for functions, future-proofing them to allow them to fail. --- include/git2/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/git2/common.h') diff --git a/include/git2/common.h b/include/git2/common.h index 947e40845..d6696061d 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -117,8 +117,9 @@ GIT_BEGIN_DECL * @param major Store the major version number * @param minor Store the minor version number * @param rev Store the revision (patch) number + * @return 0 on success or an error code on failure */ -GIT_EXTERN(void) git_libgit2_version(int *major, int *minor, int *rev); +GIT_EXTERN(int) git_libgit2_version(int *major, int *minor, int *rev); /** * Combinations of these values describe the features with which libgit2 -- cgit v1.2.1