projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ed9e94
)
net/tftp.c: fix warning: pointer targets differ in signedness
author
Wolfgang Denk
<
[email protected]
>
Mon, 10 Aug 2009 07:59:10 +0000
(09:59 +0200)
committer
Wolfgang Denk
<
[email protected]
>
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 <
[email protected]
>
net/tftp.c
patch
|
blob
|
history
diff --git
a/net/tftp.c
b/net/tftp.c
index 74d9e4215d0d0c6f7a11bc43f334f723e23870e0..fb98a346ea6e55fe2fdbcf6d5c0992cc1c56d13b 100644
(file)
--- 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;
/*