From 88ce6113593158944630435678e689bf155d9a03 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 20 Mar 2014 23:00:20 +0100 Subject: Bump dependency to libplist 1.11 and remove use of "plist_dict_insert_item()" --- common/userpref.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/userpref.c') 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 plist_read_from_filename(&config, config_file); if (!config) { config = plist_new_dict(); - plist_dict_insert_item(config, key, value); + plist_dict_set_item(config, key, value); } else { plist_t n = plist_dict_get_item(config, key); if (n) { plist_dict_remove_item(config, key); } - plist_dict_insert_item(config, key, value); + plist_dict_set_item(config, key, value); remove(config_file); } -- cgit v1.1-32-gdbae