summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-08-25 00:16:25 +0200
committerGravatar Martin Szulecki2012-08-25 00:16:25 +0200
commitaed4b55cbea1f96a999fc2879ba5dd53f05fdc85 (patch)
tree5b4bd715b1b5bbd86fa1f1095b866b65f67fbff7
parent059a5d20480333b8ea0c049559bbfddf96ab8b36 (diff)
downloadideviceinstaller-aed4b55cbea1f96a999fc2879ba5dd53f05fdc85.tar.gz
ideviceinstaller-aed4b55cbea1f96a999fc2879ba5dd53f05fdc85.tar.bz2
Rename zip_f_get_contents() to zip_get_contents()
-rw-r--r--src/ideviceinstaller.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index cfb703e..de6cb5c 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -131,7 +131,7 @@ static void status_cb(const char *operation, plist_t status)
}
}
-static int zip_f_get_contents(struct zip *zf, const char *filename, int locate_flags, char **buffer, uint32_t *len)
+static int zip_get_contents(struct zip *zf, const char *filename, int locate_flags, char **buffer, uint32_t *len)
{
struct zip_stat zs;
struct zip_file *zfile;
@@ -620,7 +620,7 @@ run_again:
/* extract iTunesMetadata.plist from package */
char *zbuf = NULL;
uint32_t len = 0;
- if (zip_f_get_contents(zf, "iTunesMetadata.plist", 0, &zbuf, &len) == 0) {
+ if (zip_get_contents(zf, "iTunesMetadata.plist", 0, &zbuf, &len) == 0) {
meta = plist_new_data(zbuf, len);
}
if (zbuf) {
@@ -631,7 +631,7 @@ run_again:
plist_t info = NULL;
zbuf = NULL;
len = 0;
- if (zip_f_get_contents(zf, "Info.plist", ZIP_FL_NODIR, &zbuf, &len) < 0) {
+ if (zip_get_contents(zf, "Info.plist", ZIP_FL_NODIR, &zbuf, &len) < 0) {
zip_unchange_all(zf);
zip_close(zf);
goto leave_cleanup;
@@ -675,7 +675,7 @@ run_again:
/* extract .sinf from package */
zbuf = NULL;
len = 0;
- if (zip_f_get_contents(zf, sinfname, 0, &zbuf, &len) == 0) {
+ if (zip_get_contents(zf, sinfname, 0, &zbuf, &len) == 0) {
sinf = plist_new_data(zbuf, len);
}
free(sinfname);