summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-05-04 13:34:20 +0200
committerGravatar Nikias Bassen2024-05-04 13:34:20 +0200
commite61817ae57aac7252499268a9276692a32dc3e01 (patch)
tree6e0f83c94c70d08f73b1043645b36e93ce791f1a
parent0d586cd58680d7b1c2eb08aed7eafbf6328d5d1f (diff)
downloadlibimobiledevice-glue-e61817ae57aac7252499268a9276692a32dc3e01.tar.gz
libimobiledevice-glue-e61817ae57aac7252499268a9276692a32dc3e01.tar.bz2
Use updated libplist 2.5.0 API
-rw-r--r--configure.ac2
-rw-r--r--src/opack.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 7aac157..4a3aca3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,7 @@ if test -z $PACKAGE_VERSION; then
fi
dnl Minimum package versions
-LIBPLIST_VERSION=2.3.0
+LIBPLIST_VERSION=2.5.0
AC_SUBST(LIBIMOBILEDEVICE_GLUE_SO_VERSION)
AC_SUBST(LIBPLIST_VERSION)
diff --git a/src/opack.c b/src/opack.c
index 8a9264a..8f6ddfa 100644
--- a/src/opack.c
+++ b/src/opack.c
@@ -199,7 +199,7 @@ static void opack_encode_node(plist_t node, struct char_buf* cbuf)
} break;
case PLIST_DATA: {
uint64_t len = 0;
- const char* data = plist_get_data_ptr(node, &len);
+ const uint8_t* data = plist_get_data_ptr(node, &len);
if (len > 0x20) {
if (len > 0xFF) {
if (len > 0xFFFF) {
@@ -379,7 +379,7 @@ static int opack_decode_obj(unsigned char** p, unsigned char* end, plist_t* plis
*p = end;
return -1;
}
- *plist_out = plist_new_data((const char*)*p, dlen);
+ *plist_out = plist_new_data(*p, dlen);
(*p)+=dlen;
} else if (type >= 0xE0 && type <= 0xEF) {
/* dictionary */