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 9dd1a01..10c14a0 100644
--- a/src/userpref.c
+++ b/src/userpref.c
@@ -88,7 +88,7 @@ static char *userpref_generate_host_id()
88 * 88 *
89 * @param host_id A null terminated string containing a valid HostID. 89 * @param host_id A null terminated string containing a valid HostID.
90 */ 90 */
91static int userpref_set_host_id(char *host_id) 91static int userpref_set_host_id(const char *host_id)
92{ 92{
93 GKeyFile *key_file; 93 GKeyFile *key_file;
94 gsize length; 94 gsize length;
@@ -164,7 +164,7 @@ void userpref_get_host_id(char **host_id)
164 * @return 1 if the iPhone has been connected previously to this configuration 164 * @return 1 if the iPhone has been connected previously to this configuration
165 * or 0 otherwise. 165 * or 0 otherwise.
166 */ 166 */
167int userpref_has_device_public_key(char *uuid) 167int userpref_has_device_public_key(const char *uuid)
168{ 168{
169 int ret = 0; 169 int ret = 0;
170 gchar *config_file; 170 gchar *config_file;
@@ -187,7 +187,7 @@ int userpref_has_device_public_key(char *uuid)
187 * @return 1 on success and 0 if no public key is given or if it has already 187 * @return 1 on success and 0 if no public key is given or if it has already
188 * been marked as connected previously. 188 * been marked as connected previously.
189 */ 189 */
190userpref_error_t userpref_set_device_public_key(char *uuid, gnutls_datum_t public_key) 190userpref_error_t userpref_set_device_public_key(const char *uuid, gnutls_datum_t public_key)
191{ 191{
192 if (NULL == public_key.data) 192 if (NULL == public_key.data)
193 return USERPREF_E_INVALID_ARG; 193 return USERPREF_E_INVALID_ARG;