]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix: TFTP is not working on little endian systems
authorstefano babic <sbabic@denx.de>
Tue, 21 Aug 2007 13:52:33 +0000 (15:52 +0200)
committerWolfgang Denk <wd@denx.de>
Wed, 29 Aug 2007 00:14:34 +0000 (02:14 +0200)
TFTP does not work anymore after multicast tftp
patch was applied on little endian systems.
This patch fix it.

Signed-off-by: Stefano Babic <sbabic@denx.de>
net/tftp.c

index d6db91c05841a450cdd51a5360121d8e4cdbf93a..fb2f50564e9d0bda8760c3cb6cfd047d54c65c76 100644 (file)
@@ -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