summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-02-05 20:50:32 -0800
committerGravatar Matt Colyer2009-02-05 20:50:32 -0800
commit3002547f1a9f5f3df026e9aaaff4c931e951ec27 (patch)
treeb4c877c092c17049f3b71fc64973d6a4729b4721 /src/ifuse.c
parent74951df5b79fe23bfc555d928bc85d9e14887ce8 (diff)
downloadifuse-3002547f1a9f5f3df026e9aaaff4c931e951ec27.tar.gz
ifuse-3002547f1a9f5f3df026e9aaaff4c931e951ec27.tar.bz2
Fix warnings about main() return value type mismatch.
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/ifuse.c')
-rw-r--r--src/ifuse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index 8d36144..92ab741 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -355,7 +355,7 @@ int main(int argc, char *argv[])
struct fuse_args args = FUSE_ARGS_INIT(argc, argv);
if (fuse_opt_parse(&args, NULL, NULL, ifuse_opt_proc) == -1) {
- exit(-1);
+ return -1;
}
if (argc < 2) {
@@ -368,14 +368,14 @@ int main(int argc, char *argv[])
fprintf(stderr, "No iPhone found, is it connected?\n");
fprintf(stderr, "If it is make sure that your user has permissions to access the raw usb device.\n");
fprintf(stderr, "If you're still having issues try unplugging the device and reconnecting it.\n");
- return NULL;
+ return 0;
}
if (IPHONE_E_SUCCESS != iphone_lckd_new_client(phone, &control)) {
iphone_free_device(phone);
fprintf(stderr, "Something went in lockdown handshake.\n");
fprintf(stderr, "Did you run libiphone-initconf as the current user?\n");
- return NULL;
+ return 0;
}
return fuse_main(args.argc, args.argv, &ifuse_oper, NULL);