diff options
author | Vicent Martà <tanoku@gmail.com> | 2011-09-22 10:28:05 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2011-09-22 10:28:05 -0700 |
commit | 01ab592b82c4051df2be6066d7dfa59696cd453d (patch) | |
tree | 934a6951ee3d005395a8632197d7fb1722a216bb /include/git2/config.h | |
parent | 87a26ad55e3d7a7b4753a9cf70f1481f2c61b2cd (diff) | |
parent | ad196c6ae669e2d69503eba942402e7215ea7b82 (diff) | |
download | libgit2-01ab592b82c4051df2be6066d7dfa59696cd453d.tar.gz |
Merge pull request #421 from nulltoken/ntk/fix/config-get-set-long
config: make git_config_[get|set]_long() able to properly deal with 8 bytes wide values
Diffstat (limited to 'include/git2/config.h')
-rw-r--r-- | include/git2/config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/config.h b/include/git2/config.h index 74ee96bde..83ed2f91c 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -164,7 +164,7 @@ GIT_EXTERN(int) git_config_get_int(git_config *cfg, const char *name, int *out); * @param out pointer to the variable where the value should be stored * @return GIT_SUCCESS or an error code */ -GIT_EXTERN(int) git_config_get_long(git_config *cfg, const char *name, long int *out); +GIT_EXTERN(int) git_config_get_long(git_config *cfg, const char *name, long long *out); /** * Get the value of a boolean config variable. @@ -210,7 +210,7 @@ GIT_EXTERN(int) git_config_set_int(git_config *cfg, const char *name, int value) * @param value Long integer value for the variable * @return GIT_SUCCESS or an error code */ -GIT_EXTERN(int) git_config_set_long(git_config *cfg, const char *name, long int value); +GIT_EXTERN(int) git_config_set_long(git_config *cfg, const char *name, long long value); /** * Set the value of a boolean config variable. |