summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-03-20 23:00:20 +0100
committerGravatar Martin Szulecki2014-03-20 23:00:20 +0100
commit88ce6113593158944630435678e689bf155d9a03 (patch)
tree0757287665b7e9c7263d77fd269b0777e8228d25 /common
parenta34a537d1408f8692daeadd5e1f5859ff13a3473 (diff)
downloadlibimobiledevice-88ce6113593158944630435678e689bf155d9a03.tar.gz
libimobiledevice-88ce6113593158944630435678e689bf155d9a03.tar.bz2
Bump dependency to libplist 1.11 and remove use of "plist_dict_insert_item()"
Diffstat (limited to 'common')
-rw-r--r--common/userpref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/userpref.c b/common/userpref.c
index cd8b229..c192c1d 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -252,13 +252,13 @@ static int internal_set_value(const char *config_file, const char *key, plist_t
252 plist_read_from_filename(&config, config_file); 252 plist_read_from_filename(&config, config_file);
253 if (!config) { 253 if (!config) {
254 config = plist_new_dict(); 254 config = plist_new_dict();
255 plist_dict_insert_item(config, key, value); 255 plist_dict_set_item(config, key, value);
256 } else { 256 } else {
257 plist_t n = plist_dict_get_item(config, key); 257 plist_t n = plist_dict_get_item(config, key);
258 if (n) { 258 if (n) {
259 plist_dict_remove_item(config, key); 259 plist_dict_remove_item(config, key);
260 } 260 }
261 plist_dict_insert_item(config, key, value); 261 plist_dict_set_item(config, key, value);
262 remove(config_file); 262 remove(config_file);
263 } 263 }
264 264