This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH RFC] Protoize dstread.c, fork-child.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH RFC] Protoize dstread.c, fork-child.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Mon, 21 Aug 2000 10:54:49 -0700
More protoization...
check-decls had problems dst_symfile_offsets() because of an error in
the K&R declaration. (Note that `addr' appears in the parameter list,
but that `addrs' appears in the type declaration for this parameter.)
Anyway, protoization removes this redundancy, so it's no longer
incorrect.
* dstread.c (dst_symfile_offsets): Protoize.
* fork-child.c (fork_inferior): Protoize.
Index: dstread.c
===================================================================
RCS file: /cvs/src/src/gdb/dstread.c,v
retrieving revision 1.4
diff -u -r1.4 dstread.c
--- dstread.c 2000/07/30 01:48:25 1.4
+++ dstread.c 2000/08/21 17:38:27
@@ -1577,9 +1577,7 @@
{0};
void
-dst_symfile_offsets (objfile, addr)
- struct objfile *objfile;
- struct section_addr_info *addrs;
+dst_symfile_offsets (struct objfile *objfile, struct section_addr_info *addrs)
{
objfile->num_sections = 1;
objfile->section_offsets = &dst_symfile_faker;
Index: fork-child.c
===================================================================
RCS file: /cvs/src/src/gdb/fork-child.c,v
retrieving revision 1.4
diff -u -r1.4 fork-child.c
--- fork-child.c 2000/07/30 01:48:25 1.4
+++ fork-child.c 2000/08/21 17:38:27
@@ -94,15 +94,9 @@
or NULL if we should pick one. Errors reported with error(). */
void
-fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun,
- pre_trace_fun, shell_file)
- char *exec_file;
- char *allargs;
- char **env;
- void (*traceme_fun) (void);
- void (*init_trace_fun) (int);
- void (*pre_trace_fun) (void);
- char *shell_file;
+fork_inferior (char *exec_file, char *allargs, char **env,
+ void (*traceme_fun) (void), void (*init_trace_fun) (int),
+ void (*pre_trace_fun) (void), char *shell_file)
{
int pid;
char *shell_command;