summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
authorGravatar Christophe Fergeau2008-08-10 23:36:33 +0200
committerGravatar Matt Colyer2008-08-11 09:39:06 -0700
commiteea922593e61a71d3f231578f1e8c4c7f035ec9c (patch)
tree823d5ae4e53be4b83377ab205b1aed94fe06c021 /src/ifuse.c
parent323459826aeea8b88872e14af9839a0912a80503 (diff)
downloadlibplist-eea922593e61a71d3f231578f1e8c4c7f035ec9c.tar.gz
libplist-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.c3
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) {
}
host_id = get_host_id();
- if (host_id && !lockdownd_start_SSL_session(control, host_id) || !host_id) {
+ if ((host_id && !lockdownd_start_SSL_session(control, host_id)) || !host_id) {
fprintf(stderr, "Something went wrong in GnuTLS. Is your HostID configured in .config/libiphone/libiphonerc?\n");
return NULL;
}
@@ -263,7 +263,6 @@ int ifuse_truncate(const char *path, off_t size) {
}
int ifuse_ftruncate(const char *path, off_t size, struct fuse_file_info *fi) {
- int result = 0;
AFClient *afc = fuse_get_context()->private_data;
AFCFile *file = g_hash_table_lookup(file_handles, &fi->fh);
if (!file) return -ENOENT;