From: Wolfgang Denk Date: Mon, 10 Aug 2009 07:59:10 +0000 (+0200) Subject: net/tftp.c: fix warning: pointer targets differ in signedness X-Git-Tag: v2009.08-rc2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d371708a1beda0f529756e614af785b30461379e;hp=3ed9e943fdfe51174b23989d48563b8c1b7d2ea8;p=platform%2Fkernel%2Fu-boot.git net/tftp.c: fix warning: pointer targets differ in signedness 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 --- 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; /*