summaryrefslogtreecommitdiffstats
path: root/src/userpref.c
diff options
context:
space:
mode:
authorGravatar Matt Colyer2008-08-01 08:46:16 -0700
committerGravatar Matt Colyer2008-08-01 08:46:16 -0700
commitf492fa820bf35e96092ad7110d80708629c038ae (patch)
treee9f30bf23d3fdf03611a2473c619a50439d7917f /src/userpref.c
parentd05ae226356cc674a055c784a4b9b75825162ba6 (diff)
downloadlibimobiledevice-f492fa820bf35e96092ad7110d80708629c038ae.tar.gz
libimobiledevice-f492fa820bf35e96092ad7110d80708629c038ae.tar.bz2
A few cleanups, got rid of global afc variable.
Diffstat (limited to 'src/userpref.c')
-rw-r--r--src/userpref.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/userpref.c b/src/userpref.c
index b877700..a2b77dc 100644
--- a/src/userpref.c
+++ b/src/userpref.c
@@ -32,14 +32,14 @@ char* get_host_id()
gchar* config_file = NULL;
/* first get config file */
- config_file = g_build_path(G_DIR_SEPARATOR_S, g_get_user_config_dir(), LIBIPHONE_CONF_DIR, LIBIPHONE_CONF_FILE, NULL);
+ config_file = g_build_path(G_DIR_SEPARATOR_S, g_get_user_config_dir(), LIBIPHONE_CONF_DIR, LIBIPHONE_CONF_FILE, NULL);
if (g_file_test(config_file, (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))) {
- /*now parse file to get the HostID*/
+ /* now parse file to get the HostID */
GKeyFile* key_file = g_key_file_new ();
if( g_key_file_load_from_file (key_file, config_file, G_KEY_FILE_KEEP_COMMENTS, NULL) ) {
- gchar* loc_host_id = g_key_file_get_value(key_file, "Global", "HostID", NULL);
+ gchar* loc_host_id = g_key_file_get_value(key_file, "Global", "HostID", NULL);
if (loc_host_id)
host_id = strdup(loc_host_id);
g_free(loc_host_id);