git: a092997dfa91 - main - audio/libgpod: Port to libplist_dict_set_item()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Jul 2024 01:45:41 UTC
The branch main has been updated by jhale: URL: https://cgit.FreeBSD.org/ports/commit/?id=a092997dfa91fe00b4ecb79133d689ed702f2533 commit a092997dfa91fe00b4ecb79133d689ed702f2533 Author: Jason E. Hale <jhale@FreeBSD.org> AuthorDate: 2024-07-11 00:24:11 +0000 Commit: Jason E. Hale <jhale@FreeBSD.org> CommitDate: 2024-07-11 01:45:30 +0000 audio/libgpod: Port to libplist_dict_set_item() Deprecated method plist_dict_insert_item() has been removed and replaced by plist_dict_set_item() in devel/libplist >= 2.3.0. PR: 280014 Reported by: <fabio.comolli@gmail.com> --- audio/libgpod/files/patch-tools_ipod-lockdown.c | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/audio/libgpod/files/patch-tools_ipod-lockdown.c b/audio/libgpod/files/patch-tools_ipod-lockdown.c new file mode 100644 index 000000000000..a24ead98db7e --- /dev/null +++ b/audio/libgpod/files/patch-tools_ipod-lockdown.c @@ -0,0 +1,33 @@ +Deprecated method plist_dict_insert_item() has been removed and +replaced by plist_dict_set_item() in devel/libplist >= 2.3.0. + +--- tools/ipod-lockdown.c.orig 2013-07-10 13:57:39 UTC ++++ tools/ipod-lockdown.c +@@ -100,7 +100,7 @@ read_sysinfo_extended_by_uuid (const char *uuid) + plist_get_string_val(ptr, &str); + if (str != NULL) { + ptr = plist_new_string(str); +- plist_dict_insert_item(value, "SerialNumber", ptr); ++ plist_dict_set_item(value, "SerialNumber", ptr); + free(str); + } + +@@ -112,15 +112,15 @@ read_sysinfo_extended_by_uuid (const char *uuid) + plist_get_string_val(ptr, &str); + if (str != NULL) { + ptr = plist_new_string(str); +- plist_dict_insert_item(value, "VisibleBuildID", ptr); ++ plist_dict_set_item(value, "VisibleBuildID", ptr); + free(str); + } + + ptr = plist_new_string(uuid); +- plist_dict_insert_item(value, "FireWireGUID", ptr); ++ plist_dict_set_item(value, "FireWireGUID", ptr); + + ptr = plist_new_string(uuid); +- plist_dict_insert_item(value, "UniqueDeviceID", ptr); ++ plist_dict_set_item(value, "UniqueDeviceID", ptr); + + plist_to_xml(value, &xml, &xml_length); +