summaryrefslogtreecommitdiff
path: root/src/session-get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/session-get.c')
-rw-r--r--src/session-get.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/session-get.c b/src/session-get.c
index ea523de..f9c94c6 100644
--- a/src/session-get.c
+++ b/src/session-get.c
@@ -24,11 +24,9 @@
#include "protocol-constants.h"
#include "session-get.h"
-int session_get_version(JsonObject * s, float *version)
+int session_get_version(JsonObject *s, float *version)
{
- const gchar *versionStr =
- json_object_get_string_member(s, SGET_VERSION);
- return sscanf(versionStr, "%g", version);
+ return sscanf(json_object_get_string_member(s, SGET_VERSION), "%g", version);
}
gint64 session_get_download_dir_free_space(JsonObject *s)