Wolfgang,

Wolfgang Denk wrote:
> tftp.c:294: warning: pointer targets in passing argument 1 of 'strlen'
> differ in signedness
>
> This was only visible for the utx8245 board which seems to have DEBUG
> enabled.
>
> Signed-off-by: Wolfgang Denk <[email protected]>
> ---
>  net/tftp.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/net/tftp.c b/net/tftp.c
> index 74d9e42..fb98a34 100644
> --- a/net/tftp.c
> +++ b/net/tftp.c
> @@ -291,7 +291,9 @@ TftpHandler (uchar * pkt, unsigned dest, unsigned src, 
> unsigned len)
>               break;
>  
>       case TFTP_OACK:
> -             debug("Got OACK: %s %s\n", pkt, pkt+strlen(pkt)+1);
> +             debug("Got OACK: %s %s\n",
> +                     pkt,
> +                     pkt + strlen((char *)pkt) + 1);
>               TftpState = STATE_OACK;
>               TftpServerPort = src;
>               /*
>   
Applied to net repo.

thanks,
Ben
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to