diff options
author | Wolfgang Denk <wd@denx.de> | 2009-08-10 09:59:10 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-08-10 09:59:10 +0200 |
commit | d371708a1beda0f529756e614af785b30461379e (patch) | |
tree | 23a68600ef9bea63a8d8b40040042db5ad3985d6 | |
parent | 3ed9e943fdfe51174b23989d48563b8c1b7d2ea8 (diff) | |
download | u-boot-imx-d371708a1beda0f529756e614af785b30461379e.zip u-boot-imx-d371708a1beda0f529756e614af785b30461379e.tar.gz u-boot-imx-d371708a1beda0f529756e614af785b30461379e.tar.bz2 |
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 <wd@denx.de>
-rw-r--r-- | net/tftp.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; /* |