projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
da8xx/hawkboard: Add support for ohci host controller
[oweals/u-boot.git]
/
net
/
tftp.c
diff --git
a/net/tftp.c
b/net/tftp.c
index bf32eabe88f2172c731f5b4baeaf6608f6eed029..59a8ebb3cf339b3c40ff24846c13406e5dc0b9a4 100644
(file)
--- a/
net/tftp.c
+++ b/
net/tftp.c
@@
-156,7
+156,7
@@
mcast_cleanup(void)
#endif /* CONFIG_MCAST_TFTP */
static inline void
#endif /* CONFIG_MCAST_TFTP */
static inline void
-store_block(
unsigned
block, uchar *src, unsigned len)
+store_block(
int
block, uchar *src, unsigned len)
{
ulong offset = block * TftpBlkSize + TftpBlockWrapOffset;
ulong newsize = offset + len;
{
ulong offset = block * TftpBlkSize + TftpBlockWrapOffset;
ulong newsize = offset + len;
@@
-778,7
+778,7
@@
void TftpStart(enum proto_t protocol)
TftpTimeoutCountMax = TftpRRQTimeoutCountMax;
NetSetTimeout(TftpTimeoutMSecs, TftpTimeout);
TftpTimeoutCountMax = TftpRRQTimeoutCountMax;
NetSetTimeout(TftpTimeoutMSecs, TftpTimeout);
-
NetSetH
andler(TftpHandler);
+
net_set_udp_h
andler(TftpHandler);
#ifdef CONFIG_CMD_TFTPPUT
net_set_icmp_handler(icmp_handler);
#endif
#ifdef CONFIG_CMD_TFTPPUT
net_set_icmp_handler(icmp_handler);
#endif
@@
-840,7
+840,7
@@
TftpStartServer(void)
#endif
TftpState = STATE_RECV_WRQ;
#endif
TftpState = STATE_RECV_WRQ;
-
NetSetH
andler(TftpHandler);
+
net_set_udp_h
andler(TftpHandler);
}
#endif /* CONFIG_CMD_TFTPSRV */
}
#endif /* CONFIG_CMD_TFTPSRV */