]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
net/tftp.c: fix warning: pointer targets differ in signedness
authorWolfgang Denk <wd@denx.de>
Mon, 10 Aug 2009 07:59:10 +0000 (09:59 +0200)
committerWolfgang Denk <wd@denx.de>
Mon, 10 Aug 2009 07:59:10 +0000 (09:59 +0200)
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>
net/tftp.c

index 74d9e4215d0d0c6f7a11bc43f334f723e23870e0..fb98a346ea6e55fe2fdbcf6d5c0992cc1c56d13b 100644 (file)
@@ -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;
                /*