cxb30131.c: Include <stdlib.h> to properly declare malloc.
authorAndreas Schwab <schwab@suse.de>
Tue, 15 Feb 2005 16:20:05 +0000 (16:20 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Tue, 15 Feb 2005 16:20:05 +0000 (16:20 +0000)
* ada/acats/tests/cxb/cxb30131.c: Include <stdlib.h> to properly
declare malloc.

From-SVN: r95065

gcc/testsuite/ChangeLog
gcc/testsuite/ada/acats/tests/cxb/cxb30131.c

index 44e8ef2a6d926ea3c1a97f63c843bc6e6af73287..b3193e96682f6056f777835da430cd21d98d3e36 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-15  Andreas Schwab  <schwab@suse.de>
+
+       * ada/acats/tests/cxb/cxb30131.c: Include <stdlib.h> to properly
+       declare malloc.
+
 2005-02-15  Andreas Krebbel  <krebbel1@de.ibm.com>
 
        * gcc.misc-tests/linkage.exp (s390): Check for 64bit added.
index 7bebe551c6de3e9bb33923bf01fe9737167ded02..6cbbdd131b04b139397aeab4d3b0da43d1bdad9d 100644 (file)
 */
 
 #include <string.h>
+#include <stdlib.h>
 
 char *stringdup (char *s)
 {
-  char *result = (char *) malloc(sizeof(char)*(strlen(s)+1));
+  char *result = malloc(sizeof(char)*(strlen(s)+1));
   return strcpy(result,s);
 }