[U-Boot] [PATCH] lib: sha1: Change uint8_t to unsigned char for sha1_der_prefix array.

Simon Glass sjg at chromium.org
Mon Nov 20 15:38:53 UTC 2017


Hi Wilson,

On 7 November 2017 at 19:30, Wilson Lee <wilson.lee at ni.com> wrote:
> uint8_t used in sha1_der_prefix array was not able to recognize by
> compiler when try to build the tools using 'HOSTCC'. That is because,
> uint8_t is undefined when 'HOSTCC' is defined because asm/type.h is not
> included in that case. Use unsigned char for sha1_der_prefix[] array
> instead.
>
> This commit is to remove and change the uint8_t to unsigned char for
> sha1_der_perfix[] array.

nit: prefix

This change is OK I suppose. But I'm not sure what compiler you are
using. This type should be provided in stdint.h - can you take a look
at why it is not?

Regards,
Simon


More information about the U-Boot mailing list