From ea45cb0adcf4baa8f939fea4c848f3e1906f19d9 Mon Sep 17 00:00:00 2001 From: Matthias Weisser Date: Sat, 3 Dec 2011 03:29:44 +0000 Subject: net: Make sure IPaddr_t is 32 bits in size When building u-boot as 64 bit application (e.g. sandbox) ulong might be 64 bits in size. This breaks network code as IPaddr_t is 64 bytes in size then and an IPv4 address is 32 bits in size. This patch makes sure that IPaddr_t is always 32 bits in size. Also some warnings introduced by this patch are fixed. Signed-off-by: Matthias Weisser Acked-by: Mike Frysinger --- net/nfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/nfs.c') diff --git a/net/nfs.c b/net/nfs.c index 5e717e3c6d..b5b482c3f3 100644 --- a/net/nfs.c +++ b/net/nfs.c @@ -688,7 +688,7 @@ NfsStart (void) } if (BootFile[0] == '\0') { - sprintf (default_filename, "/nfsroot/%02lX%02lX%02lX%02lX.img", + sprintf(default_filename, "/nfsroot/%02X%02X%02X%02X.img", NetOurIP & 0xFF, (NetOurIP >> 8) & 0xFF, (NetOurIP >> 16) & 0xFF, -- cgit v1.2.1