gcc-2.95 fixinc/server.c warning fixes

Philippe De Muyter phdm@macqel.be
Sat Jun 5 19:23:00 GMT 1999


Sun Jun  6 03:59:00 1999  Philippe De Muyter  <phdm@macqel.be>

	* fixinc/server.c (server_setup): Do not prefix function used as
 	parameter with `&'.

	* system.h (malloc, realloc): New external function declarations.

--- ./gcc/fixinc/server.c	Sun Jun  6 04:23:05 1999
+++ ./gcc/fixinc/server.c	Sun Jun  6 03:58:46 1999
@@ -220,7 +220,7 @@ server_setup ()
   static int atexit_done = 0;
   
   if (atexit_done++ == 0)
-    atexit (&close_server);
+    atexit (close_server);
 
   signal (SIGPIPE, sig_handler);
   signal (SIGALRM, sig_handler);
--- ./gcc/system.h	Sun Jun  6 04:23:06 1999
+++ ./gcc/system.h	Sun Jun  6 03:57:43 1999
@@ -326,8 +326,14 @@
 extern char *getwd ();
 #endif
 
+#ifdef NEED_DECLARATION_MALLOC
+extern char *malloc ();
+#endif
+
+#ifdef NEED_DECLARATION_REALLOC
+extern char *realloc ();
+#endif
+
 #ifdef NEED_DECLARATION_SBRK
 extern char *sbrk ();
 #endif


More information about the Gcc-patches mailing list