summaryrefslogtreecommitdiff
path: root/include/git2/push.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-04-30 10:57:42 -0700
committerRussell Belfer <rb@github.com>2014-05-02 09:21:33 -0700
commit702efc891f2a620f10998062ba0c00b34100f632 (patch)
treee80132037df687837a40b5c3d8f1d6a079d35e43 /include/git2/push.h
parent9c8ed4999740e921ecc2966bbcd0dbcfc725f59a (diff)
downloadlibgit2-702efc891f2a620f10998062ba0c00b34100f632.tar.gz
Make init_options fns use unsigned ints and macro
Use an unsigned int for the version and add a helper macro so the code is simplified (and so the error message is a common string).
Diffstat (limited to 'include/git2/push.h')
-rw-r--r--include/git2/push.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/push.h b/include/git2/push.h
index 7a8bec12c..cbf115661 100644
--- a/include/git2/push.h
+++ b/include/git2/push.h
@@ -49,8 +49,8 @@ typedef struct {
* @return Zero on success; -1 on failure.
*/
GIT_EXTERN(int) git_push_init_options(
- git_push_options* opts,
- int version);
+ git_push_options *opts,
+ unsigned int version);
/** Push network progress notification function */
typedef int (*git_push_transfer_progress)(