[rtems commit] bsp/lpc32xx: Fix warning

Sebastian Huber sebh at rtems.org
Wed Aug 9 04:59:26 UTC 2023


Module:    rtems
Branch:    master
Commit:    5c2f2b304a85b5dc121eaf776a10e70c6578cc86
Changeset: http://git.rtems.org/rtems/commit/?id=5c2f2b304a85b5dc121eaf776a10e70c6578cc86

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jun 30 10:25:13 2022 +0200

bsp/lpc32xx: Fix warning

The type is a pointer.

---

 bsps/arm/lpc32xx/include/bsp/lpc-ethernet-config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsps/arm/lpc32xx/include/bsp/lpc-ethernet-config.h b/bsps/arm/lpc32xx/include/bsp/lpc-ethernet-config.h
index 14282fd578..df74b085b1 100644
--- a/bsps/arm/lpc32xx/include/bsp/lpc-ethernet-config.h
+++ b/bsps/arm/lpc32xx/include/bsp/lpc-ethernet-config.h
@@ -100,7 +100,7 @@ static char *lpc_eth_config_alloc_table_area(size_t size)
 static void lpc_eth_config_free_table_area(char *table_area)
 {
   /* FIXME: Type */
-  free(table_area, (int) 0xdeadbeef);
+  free(table_area, NULL);
 }
 
 /** @} */



More information about the vc mailing list