@@ -264,7 +264,7 @@ static void commit_writing(git_repository *repo)
264264 git_oid tree_id , parent_id , commit_id ;
265265 git_tree * tree ;
266266 git_commit * parent ;
267- const git_signature * author , * cmtter ;
267+ git_signature * author , * committer ;
268268 char oid_hex [GIT_OID_HEXSZ + 1 ] = { 0 };
269269
270270 printf ("\n*Commit Writing*\n" );
@@ -276,9 +276,9 @@ static void commit_writing(git_repository *repo)
276276 * `user.email` configuration options. See the `config` section of this
277277 * example file to see how to access config values.
278278 */
279- git_signature_new (( git_signature * * ) & author ,
279+ git_signature_new (& author ,
280280 "Scott Chacon" , "schacon@gmail.com" , 123456789 , 60 );
281- git_signature_new (( git_signature * * ) & cmtter ,
281+ git_signature_new (& committer ,
282282 "Scott A Chacon" , "scott@github.com" , 987654321 , 90 );
283283
284284 /**
@@ -301,7 +301,7 @@ static void commit_writing(git_repository *repo)
301301 repo ,
302302 NULL , /* do not update the HEAD */
303303 author ,
304- cmtter ,
304+ committer ,
305305 NULL , /* use default message encoding */
306306 "example commit" ,
307307 tree ,
0 commit comments