all repos — cgit @ d9dff37691633aa44524ecae216c103ea497e940

a hyperfast web frontend for git written in c

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>
John Keeping john@keeping.me.uk
Sat, 13 Aug 2016 11:51:58 +0100
commit

d9dff37691633aa44524ecae216c103ea497e940

parent

000cf294c4d3f3a72b31d8bd0186ac989f596890

2 files changed, 2 insertions(+), 3 deletions(-)

jump to
M cgit.hcgit.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);
M shared.cshared.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)