diff options
author | John Keeping | 2016-08-13 11:51:58 +0100 |
---|---|---|
committer | John Keeping | 2016-10-01 11:46:55 +0100 |
commit | d9dff37691633aa44524ecae216c103ea497e940 (patch) | |
tree | 45ade38d5de7eb448ce05b4753429d446a8bc592 /shared.c | |
parent | 000cf294c4d3f3a72b31d8bd0186ac989f596890 (diff) | |
download | cgit-d9dff37691633aa44524ecae216c103ea497e940.tar.gz cgit-d9dff37691633aa44524ecae216c103ea497e940.tar.bz2 cgit-d9dff37691633aa44524ecae216c103ea497e940.zip |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -95,7 +95,7 @@ struct cgit_repo *cgit_get_repoinfo(const char *url) | |||
95 | return NULL; | 95 | return NULL; |
96 | } | 96 | } |
97 | 97 | ||
98 | void *cgit_free_commitinfo(struct commitinfo *info) | 98 | void cgit_free_commitinfo(struct commitinfo *info) |
99 | { | 99 | { |
100 | free(info->author); | 100 | free(info->author); |
101 | free(info->author_email); | 101 | free(info->author_email); |
@@ -105,7 +105,6 @@ void *cgit_free_commitinfo(struct commitinfo *info) | |||
105 | free(info->msg); | 105 | free(info->msg); |
106 | free(info->msg_encoding); | 106 | free(info->msg_encoding); |
107 | free(info); | 107 | free(info); |
108 | return NULL; | ||
109 | } | 108 | } |
110 | 109 | ||
111 | char *trim_end(const char *str, char c) | 110 | char *trim_end(const char *str, char c) |