diff options
Diffstat (limited to 'src/ifuse.c')
| -rw-r--r-- | src/ifuse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ifuse.c b/src/ifuse.c index aa06070..6a24bad 100644 --- a/src/ifuse.c +++ b/src/ifuse.c | |||
| @@ -194,7 +194,7 @@ void *ifuse_init(struct fuse_conn_info *conn) { | |||
| 194 | } | 194 | } |
| 195 | 195 | ||
| 196 | host_id = get_host_id(); | 196 | host_id = get_host_id(); |
| 197 | if (host_id && !lockdownd_start_SSL_session(control, host_id) || !host_id) { | 197 | if ((host_id && !lockdownd_start_SSL_session(control, host_id)) || !host_id) { |
| 198 | fprintf(stderr, "Something went wrong in GnuTLS. Is your HostID configured in .config/libiphone/libiphonerc?\n"); | 198 | fprintf(stderr, "Something went wrong in GnuTLS. Is your HostID configured in .config/libiphone/libiphonerc?\n"); |
| 199 | return NULL; | 199 | return NULL; |
| 200 | } | 200 | } |
| @@ -263,7 +263,6 @@ int ifuse_truncate(const char *path, off_t size) { | |||
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | int ifuse_ftruncate(const char *path, off_t size, struct fuse_file_info *fi) { | 265 | int ifuse_ftruncate(const char *path, off_t size, struct fuse_file_info *fi) { |
| 266 | int result = 0; | ||
| 267 | AFClient *afc = fuse_get_context()->private_data; | 266 | AFClient *afc = fuse_get_context()->private_data; |
| 268 | AFCFile *file = g_hash_table_lookup(file_handles, &fi->fh); | 267 | AFCFile *file = g_hash_table_lookup(file_handles, &fi->fh); |
| 269 | if (!file) return -ENOENT; | 268 | if (!file) return -ENOENT; |
