summaryrefslogtreecommitdiff
path: root/include/git2/config.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-09-30 16:08:06 +0200
committerVicent Marti <tanoku@gmail.com>2011-09-30 16:08:41 +0200
commitfafd471021218a425adb1506c0c942e8cd23f90c (patch)
tree39d3d04b2e86264f35c527a8b7c5c3a9e9044751 /include/git2/config.h
parent358a15fd65cdc56ddc02b3ea261851f20c7ac618 (diff)
downloadlibgit2-fafd471021218a425adb1506c0c942e8cd23f90c.tar.gz
config: Proper type declarations for 64 bit ints
Diffstat (limited to 'include/git2/config.h')
-rw-r--r--include/git2/config.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/config.h b/include/git2/config.h
index bafac680..36647591 100644
--- a/include/git2/config.h
+++ b/include/git2/config.h
@@ -166,7 +166,7 @@ GIT_EXTERN(void) git_config_free(git_config *cfg);
* @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_int(git_config *cfg, const char *name, int *out);
+GIT_EXTERN(int) git_config_get_int32(git_config *cfg, const char *name, int32_t *out);
/**
* Get the value of a long integer config variable.
@@ -176,7 +176,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 long *out);
+GIT_EXTERN(int) git_config_get_int64(git_config *cfg, const char *name, int64_t *out);
/**
* Get the value of a boolean config variable.
@@ -212,7 +212,7 @@ GIT_EXTERN(int) git_config_get_string(git_config *cfg, const char *name, const c
* @param value Integer value for the variable
* @return GIT_SUCCESS or an error code
*/
-GIT_EXTERN(int) git_config_set_int(git_config *cfg, const char *name, int value);
+GIT_EXTERN(int) git_config_set_int32(git_config *cfg, const char *name, int32_t value);
/**
* Set the value of a long integer config variable.
@@ -222,7 +222,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 long value);
+GIT_EXTERN(int) git_config_set_int64(git_config *cfg, const char *name, int64_t value);
/**
* Set the value of a boolean config variable.