diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2012-01-25 11:59:32 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2012-01-25 11:59:32 +0000 |
commit | 5563da141e1fd0474f1eeedb967209c55227abae (patch) | |
tree | 79edb6566aecd22050117f9728b17e40156fd093 /src/remote-exec.c | |
parent | 4d57ef2197461c450aaaf79cdbb31b256ae0e81e (diff) |
issue 175. make some (incomplete) changes as per the GTK+ best practices document - mainly using a pointer in the public class to access the private object (on a few important classes for now) for performance, and don't use C99 (C99 comments or mixed declarations/statements).
Diffstat (limited to 'src/remote-exec.c')
-rw-r--r-- | src/remote-exec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/remote-exec.c b/src/remote-exec.c index fb6d903..17f7c41 100644 --- a/src/remote-exec.c +++ b/src/remote-exec.c @@ -65,7 +65,8 @@ static gchar *dump_json_value(JsonNode * node) g_string_append_printf(buffer, "%" G_GINT64_FORMAT, g_value_get_int64(&value)); break; - case G_TYPE_STRING:{ + case G_TYPE_STRING: + { gchar *tmp; tmp = g_strescape(g_value_get_string(&value), json_exceptions); @@ -74,7 +75,8 @@ static gchar *dump_json_value(JsonNode * node) g_free(tmp); } break; - case G_TYPE_DOUBLE:{ + case G_TYPE_DOUBLE: + { gchar buf[G_ASCII_DTOSTR_BUF_SIZE]; g_string_append(buffer, |