Browse Source

Fix compiler warning

Wolfgang Denk 19 years ago
parent
commit
d9631ecf52
2 changed files with 5 additions and 0 deletions
  1. 2 0
      CHANGELOG
  2. 3 0
      common/main.c

+ 2 - 0
CHANGELOG

@@ -2,6 +2,8 @@
 Changes for U-Boot 1.1.4:
 Changes for U-Boot 1.1.4:
 ======================================================================
 ======================================================================
 
 
+* Fix compiler warning
+
 * Fix FEC PHY addresses for TQM85xx boards
 * Fix FEC PHY addresses for TQM85xx boards
 
 
 * Fix uninitialized variable problem in hush shell
 * Fix uninitialized variable problem in hush shell

+ 3 - 0
common/main.c

@@ -26,6 +26,9 @@
 #include <common.h>
 #include <common.h>
 #include <watchdog.h>
 #include <watchdog.h>
 #include <command.h>
 #include <command.h>
+#ifdef CONFIG_MODEM_SUPPORT
+#include <malloc.h>		/* for free() prototype */
+#endif
 
 
 #ifdef CFG_HUSH_PARSER
 #ifdef CFG_HUSH_PARSER
 #include <hush.h>
 #include <hush.h>