cgit

commit d9dff37691633aa44524ecae216c103ea497e940

Author: John Keeping <john@keeping.me.uk>

shared: remove return value from cgit_free_commitinfo()

This return value is never used and the function always returns NULL.

Signed-off-by: John Keeping <john@keeping.me.uk>

 cgit.h | 2 +-
 shared.c | 3 +--


diff --git a/cgit.h b/cgit.h
index f34395cde00bd65f7f53d9644cf8b02e8f8f25fa..7df0e3ae98d9353bc6c53256b978a47ffdb1572d 100644
--- a/cgit.h
+++ b/cgit.h
@@ -343,7 +343,7 @@ extern void cgit_free_reflist_inner(struct reflist *list);
 extern int cgit_refs_cb(const char *refname, const struct object_id *oid,
 			int flags, void *cb_data);
 
-extern void *cgit_free_commitinfo(struct commitinfo *info);
+extern void cgit_free_commitinfo(struct commitinfo *info);
 
 void cgit_diff_tree_cb(struct diff_queue_struct *q,
 		       struct diff_options *options, void *data);




diff --git a/shared.c b/shared.c
index a48eea6a4d62e5cbbcc14201f062c5e080af0cda..3ada875b81ba0d219836387326e37e68070662eb 100644
--- a/shared.c
+++ b/shared.c
@@ -95,7 +95,7 @@ 	}
 	return NULL;
 }
 
-void *cgit_free_commitinfo(struct commitinfo *info)
+void cgit_free_commitinfo(struct commitinfo *info)
 {
 	free(info->author);
 	free(info->author_email);
@@ -105,7 +105,6 @@ 	free(info->subject);
 	free(info->msg);
 	free(info->msg_encoding);
 	free(info);
-	return NULL;
 }
 
 char *trim_end(const char *str, char c)