diff options
| author | David Boyce <boyski@users.sourceforge.net> | 2011-09-12 23:39:47 -0400 |
|---|---|---|
| committer | David Boyce <boyski@users.sourceforge.net> | 2011-09-12 23:39:47 -0400 |
| commit | 0251733e01bb5403ee6c9529e6b63e8643054b39 (patch) | |
| tree | c84c97787c47af7ea17abdd30ebbe6ded8a5a4d8 /src | |
| parent | 9940a01c3f922d6026717a998300c747c4dfe784 (diff) | |
| download | libgit2-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.c | 2 |
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; |
