Friendly getopt32
Denys Vlasenko
vda.linux at googlemail.com
Sun Feb 10 19:44:27 UTC 2008
On Sunday 10 February 2008 16:05, dronnikov at gmail.com wrote:
> Hello, list!
>
> The most borring thing when dealing with applet options is to parse them.
> Although getopt32() does the most of dirty work for us still there exist
> numeric options which require additional processing.
*(unsigned **)(on_off->optarg) = (void *)xatoi_u(optarg);
This is a bug, I think. Should be
*(unsigned*)(on_off->optarg) = xatoi_u(optarg);
I applied it with this change, added docs, and tested it. Works.
Thanks.
--
vda
More information about the busybox
mailing list