This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix missing declaration


Functions should always be declared before use, especially if they return
a pointer.

Andreas.

2004-10-23  Andreas Schwab  <schwab@suse.de>

sim/erc32/:
	* interf.c: Include "libiberty.h" instead of declaring buildargv
	ourselves.

sim/ppc/:
	* sim_calls.c: Include "libiberty.h".

--- sim/erc32/interf.c	28 Feb 2003 10:09:08 +0100	1.3
+++ sim/erc32/interf.c	23 Oct 2004 20:36:47 +0200	
@@ -27,6 +27,7 @@
 #include <time.h>
 #include <sys/fcntl.h>
 #include "sis.h"
+#include "libiberty.h"
 #include "bfd.h"
 #include <dis-asm.h>
 #include "sim-config.h"
@@ -41,8 +42,6 @@ extern          fprintf();
 
 #define	VAL(x)	strtol(x,(char **)NULL,0)
 
-extern char   **buildargv(char *input);
-
 extern struct disassemble_info dinfo;
 extern struct pstate sregs;
 extern struct estate ebase;
--- sim/ppc/sim_calls.c	05 Aug 2004 10:34:37 +0200	1.10
+++ sim/ppc/sim_calls.c	23 Oct 2004 20:35:50 +0200	
@@ -40,6 +40,7 @@
 #endif
 #endif
 
+#include "libiberty.h"
 #include "bfd.h"
 #include "gdb/callback.h"
 #include "gdb/remote-sim.h"

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]