diff options
| author | Wolfgang Denk <wd@pollux.denx.de> | 2005-08-04 01:09:44 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@pollux.denx.de> | 2005-08-04 01:09:44 +0200 | 
| commit | c43352ccfa1ebeb15da26e52bcb152f614cbfe0a (patch) | |
| tree | 9ece7bff185c2d8ae93c4aa690464e895e623a82 /net/nfs.c | |
| parent | 6dfa434e326babbf0209bfae01bb57424924d2a9 (diff) | |
| download | olio-uboot-2014.01-c43352ccfa1ebeb15da26e52bcb152f614cbfe0a.tar.xz olio-uboot-2014.01-c43352ccfa1ebeb15da26e52bcb152f614cbfe0a.zip | |
Fix endianess problem in TFTP / NFS default filenames
Patch by Hiroshi Ito, 06 Dec 2004
Diffstat (limited to 'net/nfs.c')
| -rw-r--r-- | net/nfs.c | 10 | 
1 files changed, 4 insertions, 6 deletions
| @@ -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", |