diff options
author | Matthias Weisser <weisserm@arcor.de> | 2011-12-03 03:29:44 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-06 22:15:32 +0100 |
commit | ea45cb0adcf4baa8f939fea4c848f3e1906f19d9 (patch) | |
tree | d7aefd5f7baa6fcc46c7ac046a133c5d44ee7f78 /include/net.h | |
parent | 7f79c6f2f447fbac1a78d76912ba53afce598ce6 (diff) | |
download | u-boot-imx-ea45cb0adcf4baa8f939fea4c848f3e1906f19d9.zip u-boot-imx-ea45cb0adcf4baa8f939fea4c848f3e1906f19d9.tar.gz u-boot-imx-ea45cb0adcf4baa8f939fea4c848f3e1906f19d9.tar.bz2 |
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 <weisserm@arcor.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h index ad9afbf..fa5d525 100644 --- a/include/net.h +++ b/include/net.h @@ -33,7 +33,8 @@ #define PKTALIGN 32 -typedef ulong IPaddr_t; +/* IPv4 addresses are always 32 bits in size */ +typedef u32 IPaddr_t; /** |