fix errors and warnings with mingw

This commit is contained in:
anyc committed 2014-07-31 00:11:01 +02:00
1 parent 1a724da182
commit 305cef2f75
6 files changed
+13 -12

No files matched your search

+2 -2
View File
@@ -1230,7 +1230,7 @@ void format_currency(char **dest, int value)
}
// Currency symbol
char *symbol = &(g_currency_specs[gGeneral_config.currency_format].symbol);
const char *symbol = g_currency_specs[gGeneral_config.currency_format].symbol;
// Prefix
if (g_currency_specs[gGeneral_config.currency_format].prefix) {
strcpy(*dest, symbol);
@@ -1259,7 +1259,7 @@ void format_currency_2dp(char **dest, int value)
}
// Currency symbol
char *symbol = &(g_currency_specs[gGeneral_config.currency_format].symbol);
const char *symbol = g_currency_specs[gGeneral_config.currency_format].symbol;
// Prefix
if (g_currency_specs[gGeneral_config.currency_format].prefix) {
strcpy(*dest, symbol);