summaryrefslogtreecommitdiffstats
path: root/src/userpref.c
diff options
context:
space:
mode:
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 6e2f9d8..5f227b0 100644
--- a/src/userpref.c
+++ b/src/userpref.c
@@ -39,7 +39,7 @@
39 39
40/** Creates a freedesktop compatible configuration directory for libiphone. 40/** Creates a freedesktop compatible configuration directory for libiphone.
41 */ 41 */
42inline void create_config_dir() 42static void create_config_dir(void)
43{ 43{
44 gchar *config_dir = g_build_path(G_DIR_SEPARATOR_S, g_get_user_config_dir(), LIBIPHONE_CONF_DIR, NULL); 44 gchar *config_dir = g_build_path(G_DIR_SEPARATOR_S, g_get_user_config_dir(), LIBIPHONE_CONF_DIR, NULL);
45 45
@@ -56,7 +56,7 @@ inline void create_config_dir()
56 * 56 *
57 * @return The string containing the HostID or NULL 57 * @return The string containing the HostID or NULL
58 */ 58 */
59char *get_host_id() 59char *get_host_id(void)
60{ 60{
61 char *host_id = NULL; 61 char *host_id = NULL;
62 gchar *config_file; 62 gchar *config_file;
@@ -144,7 +144,7 @@ int store_device_public_key(char *uid, char *public_key)
144 * 144 *
145 * @return 1 if the file contents where read successfully and 0 otherwise. 145 * @return 1 if the file contents where read successfully and 0 otherwise.
146 */ 146 */
147int read_file_in_confdir(char *file, gnutls_datum_t * data) 147static int read_file_in_confdir(const char *file, gnutls_datum_t * data)
148{ 148{
149 gboolean success; 149 gboolean success;
150 gsize size; 150 gsize size;