[BusyBox] [PATCH] eject umount patch 2
Mike Frysinger
vapier at gentoo.org
Fri May 13 14:17:09 UTC 2005
On Friday 13 May 2005 08:50 am, Tito wrote:
> flags = bb_getopt_ulflags(argc, argv, "t");
> -
> - if (ioctl(bb_xopen((argv[optind] ? argv[optind] : DEFAULT_CDROM),
> +
> + char *device=argv[optind] ? : DEFAULT_CDROM;
you need to declare device at the beginning of scope
> -
> - return EXIT_SUCCESS;
> +#ifdef CONFIG_FEATURE_CLEAN_UP
> + free(command);
> + return(EXIT_SUCCESS);
> +#else
> + exit(EXIT_SUCCESS);
> +#endif
what's the deal with using return versus exit ?
-mike
More information about the busybox
mailing list