Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2016-08-13 13:51:58 +0300
committerJohn Keeping <john@keeping.me.uk>2016-10-01 13:46:55 +0300
commitd9dff37691633aa44524ecae216c103ea497e940 (patch)
tree45ade38d5de7eb448ce05b4753429d446a8bc592 /shared.c
parent000cf294c4d3f3a72b31d8bd0186ac989f596890 (diff)
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>
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c3
1 files changed, 1 insertions, 2 deletions
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)