diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2012-01-15 15:27:04 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2012-01-15 15:27:04 +0000 |
commit | d50ff75ea10e3a928ec769efae4c697f300b2e55 (patch) | |
tree | e4f2968c361046acf2ff5355a0ac3aa95560c51a /src/session-get.h | |
parent | 48b4d1af4186442fa282d0fba8440bc0f61dc7a9 (diff) |
parse the version out of the version string using locale agnostic g_ascii_strtod instead of sscanf, which would only pick up the integer component with a locale which used a different radix character.
Diffstat (limited to 'src/session-get.h')
-rw-r--r-- | src/session-get.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session-get.h b/src/session-get.h index 47edb07..c18163a 100644 --- a/src/session-get.h +++ b/src/session-get.h @@ -76,7 +76,7 @@ const gchar *session_get_torrent_done_filename(JsonObject * s); gboolean session_get_torrent_done_enabled(JsonObject * s); gint64 session_get_cache_size_mb(JsonObject * s); const gchar *session_get_version_string(JsonObject * s); -int session_get_version(JsonObject * s, float *version); +gdouble session_get_version(JsonObject * s); gboolean session_get_pex_enabled(JsonObject * s); gboolean session_get_lpd_enabled(JsonObject * s); const gchar *session_get_download_dir(JsonObject * s); |