mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
Fix endianess problem in TFTP / NFS default filenames
Patch by Hiroshi Ito, 06 Dec 2004
This commit is contained in:
parent
6dfa434e32
commit
c43352ccfa
3 changed files with 11 additions and 12 deletions
10
net/nfs.c
10
net/nfs.c
|
@ -703,13 +703,11 @@ NfsStart (void)
|
|||
}
|
||||
|
||||
if (BootFile[0] == '\0') {
|
||||
IPaddr_t OurIP = ntohl (NetOurIP);
|
||||
|
||||
sprintf (default_filename, "/nfsroot/%02lX%02lX%02lX%02lX.img",
|
||||
OurIP & 0xFF,
|
||||
(OurIP >> 8) & 0xFF,
|
||||
(OurIP >> 16) & 0xFF,
|
||||
(OurIP >> 24) & 0xFF );
|
||||
NetOurIP & 0xFF,
|
||||
(NetOurIP >> 8) & 0xFF,
|
||||
(NetOurIP >> 16) & 0xFF,
|
||||
(NetOurIP >> 24) & 0xFF );
|
||||
strcpy (nfs_path, default_filename);
|
||||
|
||||
printf ("*** Warning: no boot file name; using '%s'\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue