diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-02-14 19:34:56 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-02-14 19:34:56 +0000 |
commit | 3f7785e670e09cfd75a77ccca8031fabc0d432ab (patch) | |
tree | 41ff9eadd2b1eb537568f87a0bfcc3941a4df36a /src/trg-client.c | |
parent | 009ef4d4a37ca136c6bd1071fc980c4f164badd9 (diff) |
statistics!
Diffstat (limited to 'src/trg-client.c')
-rw-r--r-- | src/trg-client.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/trg-client.c b/src/trg-client.c index b7ac4fd..97462bb 100644 --- a/src/trg-client.c +++ b/src/trg-client.c @@ -37,8 +37,7 @@ trg_client *trg_init_client() #define check_for_error(error) if (error) { g_error_free(error); return TRG_GCONF_SCHEMA_ERROR; } -int trg_client_populate_with_settings(trg_client * tc, - GConfClient * gconf) +int trg_client_populate_with_settings(trg_client * tc, GConfClient * gconf) { gint port; gchar *host; @@ -59,12 +58,14 @@ int trg_client_populate_with_settings(trg_client * tc, host = gconf_client_get_string(gconf, TRG_GCONF_KEY_HOSTNAME, &error); check_for_error(error); if (!host || strlen(host) < 1) - return TRG_NO_HOSTNAME_SET; + return TRG_NO_HOSTNAME_SET; tc->ssl = gconf_client_get_bool(gconf, TRG_GCONF_KEY_SSL, &error); check_for_error(error); - tc->url = g_strdup_printf("%s://%s:%d/transmission/rpc", tc->ssl ? "https" : "http", host, port); + tc->url = + g_strdup_printf("%s://%s:%d/transmission/rpc", + tc->ssl ? "https" : "http", host, port); g_free(host); tc->username = |