diff options
| author | 2014-03-24 16:49:33 +0100 | |
|---|---|---|
| committer | 2014-03-24 16:49:33 +0100 | |
| commit | 16428372666a32f7493b7b4f949d6ed5c37118ef (patch) | |
| tree | 84316860937f623e43e4126924dfd92631e033c1 /src/conf.c | |
| parent | 13b7851cc3b21cfb9cd06bbd9174a10b68106669 (diff) | |
| download | usbmuxd-16428372666a32f7493b7b4f949d6ed5c37118ef.tar.gz usbmuxd-16428372666a32f7493b7b4f949d6ed5c37118ef.tar.bz2 | |
Use plist_dict_set_item() instead of deprecated plist_dict_insert_item()
Diffstat (limited to 'src/conf.c')
| -rw-r--r-- | src/conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -234,13 +234,13 @@ static int internal_set_value(const char *config_file, const char *key, plist_t | |||
| 234 | plist_read_from_filename(&config, config_file); | 234 | plist_read_from_filename(&config, config_file); |
| 235 | if (!config) { | 235 | if (!config) { |
| 236 | config = plist_new_dict(); | 236 | config = plist_new_dict(); |
| 237 | plist_dict_insert_item(config, key, value); | 237 | plist_dict_set_item(config, key, value); |
| 238 | } else { | 238 | } else { |
| 239 | plist_t n = plist_dict_get_item(config, key); | 239 | plist_t n = plist_dict_get_item(config, key); |
| 240 | if (n) { | 240 | if (n) { |
| 241 | plist_dict_remove_item(config, key); | 241 | plist_dict_remove_item(config, key); |
| 242 | } | 242 | } |
| 243 | plist_dict_insert_item(config, key, value); | 243 | plist_dict_set_item(config, key, value); |
| 244 | remove(config_file); | 244 | remove(config_file); |
| 245 | } | 245 | } |
| 246 | 246 | ||
