From 44d802e9a32aa951bf532bc546293a26232e9d4c Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Fri, 4 Feb 2011 20:05:20 +0000 Subject: dont hardcore svgiconsdir in makefile, add missing gconf configure.ac macro --- src/session-get.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/session-get.c') diff --git a/src/session-get.c b/src/session-get.c index f1e5d46..8ee4ab7 100644 --- a/src/session-get.c +++ b/src/session-get.c @@ -24,10 +24,10 @@ #include "protocol-constants.h" #include "session-get.h" -int session_get_version(JsonObject * s, float *version, int *revision) +int session_get_version(JsonObject * s, float *version) { - return sscanf(json_object_get_string_member(s, SGET_VERSION), - "%f (%d)", version, revision); + const gchar *versionStr = json_object_get_string_member(s, SGET_VERSION); + return sscanf(versionStr, "%f", version); } gboolean session_get_pex_enabled(JsonObject * s) -- cgit v1.2.3