From 3002547f1a9f5f3df026e9aaaff4c931e951ec27 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 5 Feb 2009 20:50:32 -0800 Subject: Fix warnings about main() return value type mismatch. Signed-off-by: Matt Colyer --- src/ifuse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.1-32-gdbae