diff options
Diffstat (limited to 'fpconv.c')
-rw-r--r-- | fpconv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -55,7 +55,7 @@ static char locale_decimal_point = '.'; | |||
55 | * localconv() may not be thread safe (=>crash), and nl_langinfo() is | 55 | * localconv() may not be thread safe (=>crash), and nl_langinfo() is |
56 | * not supported on some platforms. Use sprintf() instead - if the | 56 | * not supported on some platforms. Use sprintf() instead - if the |
57 | * locale does change, at least Lua CJSON won't crash. */ | 57 | * locale does change, at least Lua CJSON won't crash. */ |
58 | static void fpconv_update_locale() | 58 | static void fpconv_update_locale(void) |
59 | { | 59 | { |
60 | char buf[8]; | 60 | char buf[8]; |
61 | 61 | ||
@@ -202,7 +202,7 @@ int fpconv_g_fmt(char *str, double num, int precision) | |||
202 | return len; | 202 | return len; |
203 | } | 203 | } |
204 | 204 | ||
205 | void fpconv_init() | 205 | void fpconv_init(void) |
206 | { | 206 | { |
207 | fpconv_update_locale(); | 207 | fpconv_update_locale(); |
208 | } | 208 | } |