From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 06 Dec 2011 22:15:40 +0100 Subject: [U-Boot] [PATCH V2] net: Make sure IPaddr_t is 32 bits in size In-Reply-To: <1322918984-9089-1-git-send-email-weisserm@arcor.de> References: <1322843172-20251-1-git-send-email-weisserm@arcor.de> <1322918984-9089-1-git-send-email-weisserm@arcor.de> Message-ID: <20111206211540.DC5E61A32821@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Matthias Weisser, In message <1322918984-9089-1-git-send-email-weisserm@arcor.de> you wrote: > 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 > --- > Changes in v2: > Added explicit information about 32 bit size of IPv4 addresses in > commit message and source comment. > > include/net.h | 3 ++- > net/net.c | 6 +++--- > net/nfs.c | 2 +- > net/tftp.c | 2 +- > 4 files changed, 7 insertions(+), 6 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The one who says it cannot be done should never interrupt the one who is doing it.