From eea922593e61a71d3f231578f1e8c4c7f035ec9c Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Sun, 10 Aug 2008 23:36:33 +0200 Subject: Fix compilation with gcc 4.3 -Wall -Werror -Wno-pointer-sign Signed-off-by: Matt Colyer --- src/ifuse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ifuse.c') 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; -- cgit v1.1-32-gdbae