Date: Tue, 19 Jun 2007 12:18:46 +0200 (CEST) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= <bkoenig@alpha-tierchen.de> To: arm@freebsd.org Subject: libat91 doesn't compile Message-ID: <62351.2001:6f8:101e:0:20e:cff:fe6d:6adb.1182248326.squirrel@webmail.alpha-tierchen.de>
next in thread | raw e-mail | index | archive | help
------=_20070619121846_46337 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hello, the compilation of libat91 fails because of a compiler warning: emac.c: In function 'CheckForNewPacket': emac.c:326: warning: pointer targets in passing argument 1 of 'TFTP_ACK_Data' differ in signedness Please add a simple explicit cast to (char *). Björn ------=_20070619121846_46337 Content-Type: text/x-diff; name="emac.c.diff" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="emac.c.diff" --- src/sys/boot/arm/at91/libat91/emac.c.orig 2007-03-29 00:40:37.000000000 +0200 +++ src/sys/boot/arm/at91/libat91/emac.c 2007-06-19 12:10:52.000000000 +0200 @@ -321,7 +321,7 @@ if (serverPort != udpHdr->src_port) break; - TFTP_ACK_Data(tftpHdr->data, + TFTP_ACK_Data((char *)tftpHdr->data, SWAP16(tftpHdr->block_num), SWAP16(udpHdr->udp_len) - 12); } ------=_20070619121846_46337--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?62351.2001:6f8:101e:0:20e:cff:fe6d:6adb.1182248326.squirrel>