From: Hugo Villeneuve Date: Mon, 5 Sep 2011 21:15:21 +0000 (-0400) Subject: Fix compilation warning X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=e204c56b2b9aeea9e376f946f8792a6ed47f39fa;p=hvgrip.git Fix compilation warning Original warning message: warning: passing argument 3 of ‘DiscDBConvertEncoding’ discards qualifiers from pointer target type --- diff --git a/src/discdb.c b/src/discdb.c index 2be0d6f..74233c7 100644 --- a/src/discdb.c +++ b/src/discdb.c @@ -725,7 +725,7 @@ int DiscDBReadDiscData(DiscInfo *disc,DiscData *ddata, const char *encoding) if(!DiscDBUTF8Validate(disc,ddata)) { DiscDBConvertEncoding(disc,ddata,strcasecmp(encoding,"UTF-8")? - encoding:"ISO-8859-1","UTF-8"); + (char *) encoding:"ISO-8859-1","UTF-8"); } fclose(discdb_data);