From: Fred Fish Date: Tue, 13 Aug 1996 04:27:08 +0000 (+0000) Subject: * remote-pa.c (boot_board): Add dummy params to make type compatible X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1d58bcded631ca0b325d3a10156d8727a029337;p=binutils-gdb.git * remote-pa.c (boot_board): Add dummy params to make type compatible for passing to add_com. * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized. * buildsym.c (compare_line_numbers): Change function to match prototype and also what qsort expects. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1cff938ba7a..0daaa744fef 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +Mon Aug 12 21:23:44 1996 Fred Fish + + * remote-pa.c (boot_board): Add dummy params to make type compatible + for passing to add_com. + * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized. + * buildsym.c (compare_line_numbers): Change function to match + prototype and also what qsort expects. + Mon Aug 12 19:19:00 1996 Mark Alexander * remote.c: Make remote_write_size public. diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 5a5847a823f..e0b30f02c14 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -664,8 +664,8 @@ record_line (subfile, line, pc) static int compare_line_numbers (ln1p, ln2p) - const PTR ln1p; - const PTR ln2p; + const void *ln1p; + const void *ln2p; { struct linetable_entry *ln1 = (struct linetable_entry *) ln1p; struct linetable_entry *ln2 = (struct linetable_entry *) ln2p; diff --git a/gdb/remote-pa.c b/gdb/remote-pa.c index bbc8313c5f8..3fc422ff5ce 100644 --- a/gdb/remote-pa.c +++ b/gdb/remote-pa.c @@ -175,7 +175,7 @@ static int read_frame PARAMS ((char *)); static void -boot_board PARAMS ((void)); +boot_board PARAMS ((char *, int)); static int remote_write_bytes PARAMS ((CORE_ADDR memaddr, char *myaddr, int len)); @@ -374,8 +374,10 @@ get_offsets () #define INBUFSIZE 10 -void -boot_board() +static void +boot_board (dummy1, dummy2) + char *dummy1; + int dummy2; { char c; char buf[INBUFSIZE]; diff --git a/gdb/scm-exp.c b/gdb/scm-exp.c index 70e719181dd..63995639dcf 100644 --- a/gdb/scm-exp.c +++ b/gdb/scm-exp.c @@ -230,7 +230,7 @@ scm_lreadr (skipping) { int c, j; struct stoken str; - LONGEST svalue; + LONGEST svalue = 0; tryagain: c = *lexptr++; switch (c)