summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-25 23:52:06 +0200
committerGravatar Jonathan Beck2008-08-31 19:33:19 +0200
commit572113d68e2b8d087526474dc384dac69e937bd3 (patch)
treec73698faf346392e6ffd4eb5119b175da24163ba
parente52da6fe75008174a254254ec83394766afb624b (diff)
downloadlibimobiledevice-572113d68e2b8d087526474dc384dac69e937bd3.tar.gz
libimobiledevice-572113d68e2b8d087526474dc384dac69e937bd3.tar.bz2
ifuse.c only includes libiphonoe.h
-rw-r--r--src/ifuse.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index 1c184a2..eacf549 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -32,12 +32,7 @@
32#include <glib.h> 32#include <glib.h>
33#include <unistd.h> 33#include <unistd.h>
34 34
35#include "usbmux.h" 35#include <libiphone/libiphone.h>
36#include "iphone.h"
37#include "plist.h"
38#include "lockdown.h"
39#include "AFC.h"
40#include "userpref.h"
41 36
42GHashTable *file_handles; 37GHashTable *file_handles;
43int fh_index = 0; 38int fh_index = 0;
@@ -91,7 +86,7 @@ static int ifuse_create(const char *path, mode_t mode, struct fuse_file_info *fi
91static int ifuse_open(const char *path, struct fuse_file_info *fi) { 86static int ifuse_open(const char *path, struct fuse_file_info *fi) {
92 iphone_afc_file_t file; 87 iphone_afc_file_t file;
93 iphone_afc_client_t afc = fuse_get_context()->private_data; 88 iphone_afc_client_t afc = fuse_get_context()->private_data;
94 uint32 mode = 0; 89 uint32_t mode = 0;
95 90
96 if ((fi->flags & 3) == O_RDWR || (fi->flags & 3) == O_WRONLY) { 91 if ((fi->flags & 3) == O_RDWR || (fi->flags & 3) == O_WRONLY) {
97 mode = AFC_FILE_READ; 92 mode = AFC_FILE_READ;
@@ -212,7 +207,7 @@ int ifuse_flush(const char *path, struct fuse_file_info *fi) {
212int ifuse_statfs(const char *path, struct statvfs *stats) { 207int ifuse_statfs(const char *path, struct statvfs *stats) {
213 iphone_afc_client_t afc = fuse_get_context()->private_data; 208 iphone_afc_client_t afc = fuse_get_context()->private_data;
214 char **info_raw = iphone_afc_get_devinfo(afc); 209 char **info_raw = iphone_afc_get_devinfo(afc);
215 uint32 totalspace = 0, freespace = 0, blocksize = 0, i = 0; 210 uint32_t totalspace = 0, freespace = 0, blocksize = 0, i = 0;
216 211
217 if (!info_raw) return -ENOENT; 212 if (!info_raw) return -ENOENT;
218 213