On Thursday 05 January 2012 13:44:55 David Wagner wrote:
> --- a/tools/mkenvimage.c
> +++ b/tools/mkenvimage.c
>
>                       datasize = strtol(optarg, NULL, 0);
> -                     break;
> +                     if (!errno)
> +                             break;
> +
> +                     if (errno == ERANGE)
> +                             fprintf(stderr, "Bad integer format: %s\n",
> +                                             optarg);
> +                     else
> +                             fprintf(stderr, "Error while parsing %s: %s\n",
> +                                             optarg, strerror(errno));
> +
> +                     return EXIT_FAILURE;

seems like this should be a local xstrol() helper
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to