From 0efa3bc3a3519695f288211d720620cc0672f054 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 29 Dec 2008 12:06:30 +0100 Subject: Removed unused variables --- src/userpref.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/userpref.c') diff --git a/src/userpref.c b/src/userpref.c index db54679..6e2f9d8 100644 --- a/src/userpref.c +++ b/src/userpref.c @@ -92,9 +92,6 @@ int is_device_known(char *uid) { int ret = 0; gchar *config_file; - GKeyFile *key_file; - gchar **devices_list, **pcur, *keyfilepath, *stored_key; - GIOChannel *keyfile; /* first get config file */ gchar *device_file = g_strconcat(uid, ".pem", NULL); -- cgit v1.1-32-gdbae From d77ecbe3fbd73418dd72e147a0ac2a89e62b1cd9 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 29 Dec 2008 12:35:51 +0100 Subject: Fix function prototypes Add missing static, const, change function() to function(void) --- src/userpref.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/userpref.c') diff --git a/src/userpref.c b/src/userpref.c index 6e2f9d8..5f227b0 100644 --- a/src/userpref.c +++ b/src/userpref.c @@ -39,7 +39,7 @@ /** Creates a freedesktop compatible configuration directory for libiphone. */ -inline void create_config_dir() +static void create_config_dir(void) { gchar *config_dir = g_build_path(G_DIR_SEPARATOR_S, g_get_user_config_dir(), LIBIPHONE_CONF_DIR, NULL); @@ -56,7 +56,7 @@ inline void create_config_dir() * * @return The string containing the HostID or NULL */ -char *get_host_id() +char *get_host_id(void) { char *host_id = NULL; gchar *config_file; @@ -144,7 +144,7 @@ int store_device_public_key(char *uid, char *public_key) * * @return 1 if the file contents where read successfully and 0 otherwise. */ -int read_file_in_confdir(char *file, gnutls_datum_t * data) +static int read_file_in_confdir(const char *file, gnutls_datum_t * data) { gboolean success; gsize size; -- cgit v1.1-32-gdbae