From d9dff37691633aa44524ecae216c103ea497e940 Mon Sep 17 00:00:00 2001 From: John Keeping Date: Sat, 13 Aug 2016 11:51:58 +0100 Subject: 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 --- shared.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shared.c') diff --git a/shared.c b/shared.c index a48eea6..3ada875 100644 --- a/shared.c +++ b/shared.c @@ -95,7 +95,7 @@ struct cgit_repo *cgit_get_repoinfo(const char *url) 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 @@ void *cgit_free_commitinfo(struct commitinfo *info) free(info->msg); free(info->msg_encoding); free(info); - return NULL; } char *trim_end(const char *str, char c) -- cgit v1.2.3-70-g09d2