diff options
| author | 2008-08-10 23:36:33 +0200 | |
|---|---|---|
| committer | 2008-08-11 09:39:06 -0700 | |
| commit | eea922593e61a71d3f231578f1e8c4c7f035ec9c (patch) | |
| tree | 823d5ae4e53be4b83377ab205b1aed94fe06c021 /src/ifuse.c | |
| parent | 323459826aeea8b88872e14af9839a0912a80503 (diff) | |
| download | libimobiledevice-eea922593e61a71d3f231578f1e8c4c7f035ec9c.tar.gz libimobiledevice-eea922593e61a71d3f231578f1e8c4c7f035ec9c.tar.bz2 | |
Fix compilation with gcc 4.3 -Wall -Werror -Wno-pointer-sign
Signed-off-by: Matt Colyer <matt@colyer.name>
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; |
