change log for rtems (2011-10-09)

rtems-vc at rtems.org rtems-vc at rtems.org
Sun Oct 9 16:12:10 UTC 2011


 *ralf*:
2011-10-09	Ralf Corsépius <ralf.corsepius at rtems.org>

	* libchip/network/greth.c, libchip/network/open_eth.c
	libchip/network/sonic.c: Eliminate evil typecasts.
	* libchip/network/greth.h, libchip/network/open_eth.h,
	libchip/network/sonic.h: Use void* for addresses.

M  1.555  c/src/ChangeLog
M    1.7  c/src/libchip/network/greth.h
M   1.13  c/src/libchip/network/greth.c
M    1.7  c/src/libchip/network/open_eth.h
M   1.21  c/src/libchip/network/open_eth.c
M    1.8  c/src/libchip/network/sonic.h
M   1.17  c/src/libchip/network/sonic.c

diff -u rtems/c/src/ChangeLog:1.554 rtems/c/src/ChangeLog:1.555
--- rtems/c/src/ChangeLog:1.554	Tue Aug 30 08:16:35 2011
+++ rtems/c/src/ChangeLog	Sun Oct  9 10:37:53 2011
@@ -1,3 +1,10 @@
+2011-10-09	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* libchip/network/greth.c, libchip/network/open_eth.c
+	libchip/network/sonic.c: Eliminate evil typecasts.
+	* libchip/network/greth.h, libchip/network/open_eth.h,
+	libchip/network/sonic.h: Use void* for addresses.
+
 2011-08-30	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
 	* libchip/network/smc91111exp.h, libchip/network/smc91111.c: Use

diff -u rtems/c/src/libchip/network/greth.h:1.6 rtems/c/src/libchip/network/greth.h:1.7
--- rtems/c/src/libchip/network/greth.h:1.6	Fri Jan 28 14:47:05 2011
+++ rtems/c/src/libchip/network/greth.h	Sun Oct  9 10:37:53 2011
@@ -17,7 +17,7 @@
 /* Configuration Information */
 
 typedef struct {
-  uint32_t              base_address;
+  void                 *base_address;
   uint32_t              vector;
   uint32_t              txd_count;
   uint32_t              rxd_count;

diff -u rtems/c/src/libchip/network/greth.c:1.12 rtems/c/src/libchip/network/greth.c:1.13
--- rtems/c/src/libchip/network/greth.c:1.12	Fri Jan 28 14:47:05 2011
+++ rtems/c/src/libchip/network/greth.c	Sun Oct  9 10:37:53 2011
@@ -968,7 +968,7 @@
 	mtu = ETHERMTU;
 
     sc->acceptBroadcast = !config->ignore_broadcast;
-    sc->regs = (void *) chip->base_address;
+    sc->regs = chip->base_address;
     sc->vector = chip->vector;
     sc->txbufs = chip->txd_count;
     sc->rxbufs = chip->rxd_count;

diff -u rtems/c/src/libchip/network/open_eth.h:1.6 rtems/c/src/libchip/network/open_eth.h:1.7
--- rtems/c/src/libchip/network/open_eth.h:1.6	Mon Jan  9 09:44:11 2006
+++ rtems/c/src/libchip/network/open_eth.h	Sun Oct  9 10:37:53 2011
@@ -8,7 +8,7 @@
 /* Configuration Information */
 
 typedef struct {
-  uint32_t                base_address;
+  void                   *base_address;
   uint32_t                vector;
   uint32_t                txd_count;
   uint32_t                rxd_count;

diff -u rtems/c/src/libchip/network/open_eth.c:1.20 rtems/c/src/libchip/network/open_eth.c:1.21
--- rtems/c/src/libchip/network/open_eth.c:1.20	Fri Jan 28 14:47:05 2011
+++ rtems/c/src/libchip/network/open_eth.c	Sun Oct  9 10:37:53 2011
@@ -734,7 +734,7 @@
 	mtu = ETHERMTU;
 
     sc->acceptBroadcast = !config->ignore_broadcast;
-    sc->regs = (void *) chip->base_address;
+    sc->regs = chip->base_address;
     sc->vector = chip->vector;
     sc->txbufs = chip->txd_count;
     sc->rxbufs = chip->rxd_count;

diff -u rtems/c/src/libchip/network/sonic.h:1.7 rtems/c/src/libchip/network/sonic.h:1.8
--- rtems/c/src/libchip/network/sonic.h:1.7	Tue Apr 20 05:43:39 2004
+++ rtems/c/src/libchip/network/sonic.h	Sun Oct  9 10:37:53 2011
@@ -81,7 +81,7 @@
 );
 
 typedef struct {
-  uint32_t                base_address;
+  void                   *base_address;
   uint32_t                vector;
   uint32_t                dcr_value;
   uint32_t                dc2_value;

diff -u rtems/c/src/libchip/network/sonic.c:1.16 rtems/c/src/libchip/network/sonic.c:1.17
--- rtems/c/src/libchip/network/sonic.c:1.16	Sat Aug 30 15:29:57 2008
+++ rtems/c/src/libchip/network/sonic.c	Sun Oct  9 10:37:53 2011
@@ -1590,7 +1590,7 @@
     sc->tdaCount = chip->tda_count;
   sc->acceptBroadcast = !config->ignore_broadcast;
 
-  sc->sonic = (void *) chip->base_address;
+  sc->sonic = chip->base_address;
   sc->vector = chip->vector;
   sc->dcr_value = chip->dcr_value;
   sc->dc2_value  = chip->dc2_value;



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111009/f80bacc9/attachment-0001.html>


More information about the vc mailing list