Commit 073aa601 by Andreas Schwab Committed by Andreas Schwab

cxb30131.c: Include <stdlib.h> to properly declare malloc.

* ada/acats/tests/cxb/cxb30131.c: Include <stdlib.h> to properly
declare malloc.

From-SVN: r95065
parent 6a6305e4
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.
......
......@@ -54,10 +54,11 @@
*/
#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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment