From aa943bc9a68ccdcc5cbe29f6ac3b5e787d4c22ca Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 16 Aug 2015 14:53:52 +0200 Subject: refactor get_mimetype_from_file() to get_mimetype_for_filename() * handle mimetype within a single function * return allocated memory on success Signed-off-by: Christian Hesse --- cgit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index 0f1e186..b7eccdd 100644 --- a/cgit.h +++ b/cgit.h @@ -391,6 +391,6 @@ extern int readfile(const char *path, char **buf, size_t *size); extern char *expand_macros(const char *txt); -extern char *get_mimetype_from_file(const char *filename, const char *ext); +extern char *get_mimetype_for_filename(const char *filename); #endif /* CGIT_H */ -- cgit v1.2.1