From: stefano babic Date: Tue, 21 Aug 2007 13:52:33 +0000 (+0200) Subject: Fix: TFTP is not working on little endian systems X-Git-Tag: v1.3.0-rc1~12^2~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ef8f20752712dc1cdbd86f47e3bd6e35f81c83fd;p=u-boot Fix: TFTP is not working on little endian systems TFTP does not work anymore after multicast tftp patch was applied on little endian systems. This patch fix it. Signed-off-by: Stefano Babic --- diff --git a/net/tftp.c b/net/tftp.c index d6db91c058..fb2f50564e 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -178,7 +178,7 @@ TftpSend (void) pkt += strlen((char *)pkt) + 1; /* try for more effic. blk size */ pkt += sprintf((char *)pkt,"blksize%c%d%c", - 0,htons(TftpBlkSizeOption),0); + 0,TftpBlkSizeOption,0); #ifdef CONFIG_MCAST_TFTP /* Check all preconditions before even trying the option */ if (!ProhibitMcast