From 9d776b6a0f770cbe045a56141844d0ba393da611 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 31 Jul 2018 11:38:41 +1000 Subject: Constify a few string arguments Cuts down on compiler warning by at least 64%, what a bargain! Signed-off-by: Peter Hutterer Reviewed-by: Alan Coopersmith --- fonttosfnt.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fonttosfnt.h') diff --git a/fonttosfnt.h b/fonttosfnt.h index d6aa004..159535f 100644 --- a/fonttosfnt.h +++ b/fonttosfnt.h @@ -166,10 +166,10 @@ int writeFile(char *filename, FontPtr); #define PROP_INTEGER 2 #define PROP_CARDINAL 3 -char *sprintf_alloc(char *f, ...); -char *vsprintf_alloc(char *f, va_list args); -char *makeUTF16(char *); -unsigned makeName(char*); +char *sprintf_alloc(const char *f, ...); +char *vsprintf_alloc(const char *f, va_list args); +char *makeUTF16(const char *); +unsigned makeName(const char*); int macTime(int *, unsigned *); unsigned faceFoundry(FT_Face); char *faceEncoding(FT_Face); -- cgit v1.2.3