summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorDavid Boyce <boyski@users.sourceforge.net>2011-09-12 23:39:47 -0400
committerDavid Boyce <boyski@users.sourceforge.net>2011-09-12 23:39:47 -0400
commit0251733e01bb5403ee6c9529e6b63e8643054b39 (patch)
treec84c97787c47af7ea17abdd30ebbe6ded8a5a4d8 /include/git2
parent9940a01c3f922d6026717a998300c747c4dfe784 (diff)
downloadlibgit2-0251733e01bb5403ee6c9529e6b63e8643054b39.tar.gz
Changes to allow examples/*.c to compile and link. This required on
change to the signature of an API function (git_signature_new). Also, the examples/general.c had a lot of unchecked return values which were addresed with a couple of macros. The resulting example still does not work correctly but at least now it fails with an error message rather than not compiling or dumping core. Example runtime issues may be addressed in a later commit.
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/signature.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/signature.h b/include/git2/signature.h
index f5d03ac77..0db09d156 100644
--- a/include/git2/signature.h
+++ b/include/git2/signature.h
@@ -48,7 +48,7 @@ GIT_BEGIN_DECL
* @param offset timezone offset in minutes for the time
* @return 0 on success; error code otherwise
*/
-GIT_EXTERN(int) git_signature_new(git_signature **sig_out, const char *name, const char *email, git_time_t time, int offset);
+GIT_EXTERN(int) git_signature_new(const git_signature **sig_out, const char *name, const char *email, git_time_t time, int offset);
/**
* Create a new action signature with a timestamp of 'now'. The