Skip to content
Snippets Groups Projects
Commit ef8f2075 authored by Stefano Babic's avatar Stefano Babic Committed by Wolfgang Denk
Browse files

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: default avatarStefano Babic <sbabic@denx.de>
parent 5f470948
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,7 @@ TftpSend (void) ...@@ -178,7 +178,7 @@ TftpSend (void)
pkt += strlen((char *)pkt) + 1; pkt += strlen((char *)pkt) + 1;
/* try for more effic. blk size */ /* try for more effic. blk size */
pkt += sprintf((char *)pkt,"blksize%c%d%c", pkt += sprintf((char *)pkt,"blksize%c%d%c",
0,htons(TftpBlkSizeOption),0); 0,TftpBlkSizeOption,0);
#ifdef CONFIG_MCAST_TFTP #ifdef CONFIG_MCAST_TFTP
/* Check all preconditions before even trying the option */ /* Check all preconditions before even trying the option */
if (!ProhibitMcast if (!ProhibitMcast
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment