diff options
| -rw-r--r-- | src/ifuse.c | 11 |
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 | ||
| 42 | GHashTable *file_handles; | 37 | GHashTable *file_handles; |
| 43 | int fh_index = 0; | 38 | int fh_index = 0; |
| @@ -91,7 +86,7 @@ static int ifuse_create(const char *path, mode_t mode, struct fuse_file_info *fi | |||
| 91 | static int ifuse_open(const char *path, struct fuse_file_info *fi) { | 86 | static 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) { | |||
| 212 | int ifuse_statfs(const char *path, struct statvfs *stats) { | 207 | int 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 | ||
