summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-01-12 22:00:53 +0100
committerPatrick Steinhardt <ps@pks.im>2017-01-12 22:00:53 +0100
commit8572e2252b9013cef7513f4e55523603c4d95ff6 (patch)
tree5e6255ea8aafee143f4efaf17550ceb961c184b5
parentffe259d9e52a472b172d9834ed44a98fd1ce4d1a (diff)
downloadlibgit2-8572e2252b9013cef7513f4e55523603c4d95ff6.tar.gz
examples: general: clean up committer/author variables
-rw-r--r--examples/general.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/general.c b/examples/general.c
index cc0cf1b42..d59f67f5e 100644
--- a/examples/general.c
+++ b/examples/general.c
@@ -264,7 +264,7 @@ static void commit_writing(git_repository *repo)
git_oid tree_id, parent_id, commit_id;
git_tree *tree;
git_commit *parent;
- const git_signature *author, *cmtter;
+ git_signature *author, *committer;
char oid_hex[GIT_OID_HEXSZ+1] = { 0 };
printf("\n*Commit Writing*\n");
@@ -276,9 +276,9 @@ static void commit_writing(git_repository *repo)
* `user.email` configuration options. See the `config` section of this
* example file to see how to access config values.
*/
- git_signature_new((git_signature **)&author,
+ git_signature_new(&author,
"Scott Chacon", "schacon@gmail.com", 123456789, 60);
- git_signature_new((git_signature **)&cmtter,
+ git_signature_new(&committer,
"Scott A Chacon", "scott@github.com", 987654321, 90);
/**
@@ -301,7 +301,7 @@ static void commit_writing(git_repository *repo)
repo,
NULL, /* do not update the HEAD */
author,
- cmtter,
+ committer,
NULL, /* use default message encoding */
"example commit",
tree,