summaryrefslogtreecommitdiff
path: root/src
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 /src
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 'src')
-rw-r--r--src/signature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signature.c b/src/signature.c
index 327efe247..4aa73cbb4 100644
--- a/src/signature.c
+++ b/src/signature.c
@@ -81,7 +81,7 @@ static int process_trimming(const char *input, char **storage, const char *input
return GIT_SUCCESS;
}
-int git_signature_new(git_signature **sig_out, const char *name, const char *email, git_time_t time, int offset)
+int git_signature_new(const git_signature **sig_out, const char *name, const char *email, git_time_t time, int offset)
{
int error;
git_signature *p = NULL;