On Sep 18, 2008, at 1:54 AM, Wolfgang Denk wrote:
>> +int do_bootm_subcommand (cmd_tbl_t *cmdtp, int flag, int argc,
>> char *argv[])
>> +{
>> + int ret = 0;
>> +
>> + /* start */
>> + if (argv[1][0] == 's') {
>
> I think just matching on the first letter is to restrictive; we'll end
> up with artificical command "names" that nobody can remember.
I'm happy to move to using strncmp, but I agree with Jerry that other
subcommand do the shortest match possible.
- k
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot