From c65b2f8fa81182ee6a36912d33b4929347335e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Fri, 30 Oct 2020 16:19:51 +0100 Subject: ass_library: Constify ass_add_font Both parameters are copied and are immutable. Make it clear through the function prototype --- compare/compare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compare/compare.c') diff --git a/compare/compare.c b/compare/compare.c index 3e71ba25..46398278 100644 --- a/compare/compare.c +++ b/compare/compare.c @@ -271,7 +271,7 @@ static bool load_font(ASS_Library *lib, const char *dir, const char *file) fclose(fp); printf("Loading font '%s'.\n", file); - ass_add_font(lib, (char *) file, buf, size); + ass_add_font(lib, file, buf, size); free(buf); return true; } -- cgit v1.2.3