From: Kevin Buettner Date: Wed, 8 Nov 2000 05:10:18 +0000 (+0000) Subject: Protoization. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed37ab208733ab2b1c8a81f6776a5893ce17503c;p=binutils-gdb.git Protoization. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ef1ff14e291..43b8fc145d6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-11-07 Kevin Buettner + + * valops.c (typecmp): Protoize. + * valprint.c (strcat_longest): Protoize. + 2000-11-07 Kevin Buettner * ia64-tdep.c (native_find_global_pointer): New global variable. diff --git a/gdb/valops.c b/gdb/valops.c index 7feec533085..918398493bc 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1937,10 +1937,7 @@ value_bitstring (char *ptr, int len) requested operation is type secure, shouldn't we? FIXME. */ static int -typecmp (staticp, t1, t2) - int staticp; - struct type *t1[]; - value_ptr t2[]; +typecmp (int staticp, struct type *t1[], value_ptr t2[]) { int i; diff --git a/gdb/valprint.c b/gdb/valprint.c index 1ca46be9852..0432bf24186 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -414,13 +414,10 @@ print_longest (struct ui_file *stream, int format, int use_local, #if 0 void -strcat_longest (format, use_local, val_long, buf, buflen) - int format; - int use_local; - LONGEST val_long; - char *buf; - int buflen; /* ignored, for now */ +strcat_longest (int format, int use_local, LONGEST val_long, char *buf, + int buflen) { +/* FIXME: Use buflen to avoid buffer overflow. */ #if defined (CC_HAS_LONG_LONG) && !defined (PRINTF_HAS_LONG_LONG) long vtop, vbot;