import gdb-1999-06-28 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / coremaker.c
index 56239e9286f4ddeed1d9b88e9f5da080b95782ba..4bb16d46aa489739cfbf7c132609f6fc937e323d 100644 (file)
@@ -6,6 +6,8 @@
 #include <fcntl.h>
 #include <sys/mman.h>
 #include <signal.h>
+#include <stdlib.h>
+#include <unistd.h>
 
 #ifndef __STDC__
 #define        const   /**/
@@ -33,7 +35,6 @@ void
 mmapdata ()
 {
   int j, fd;
-  extern void *malloc ();
 
   /* Allocate and initialize a buffer that will be used to write
      the file that is later mapped in. */
@@ -112,9 +113,10 @@ func1 ()
   func2 ();
 }
 
-main ()
+int main ()
 {
   mmapdata ();
   func1 ();
+  return 0;
 }
 
This page took 0.029714 seconds and 4 git commands to generate.