OSDN Git Service

Protoization.
authorKevin Buettner <kevinb@redhat.com>
Wed, 8 Nov 2000 05:10:18 +0000 (05:10 +0000)
committerKevin Buettner <kevinb@redhat.com>
Wed, 8 Nov 2000 05:10:18 +0000 (05:10 +0000)
gdb/ChangeLog
gdb/valops.c
gdb/valprint.c

index ef1ff14..43b8fc1 100644 (file)
@@ -1,5 +1,10 @@
 2000-11-07  Kevin Buettner  <kevinb@redhat.com>
 
+       * valops.c (typecmp): Protoize.
+       * valprint.c (strcat_longest): Protoize.
+
+2000-11-07  Kevin Buettner  <kevinb@redhat.com>
+
        * ia64-tdep.c (native_find_global_pointer):  New global variable.
        (struct gdbarch_tdep): Add member find_global_pointer.
        (ia64_gdbarch_init): Initialize find_global_pointer member.  Also,
index 7feec53..9183984 100644 (file)
@@ -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;
 
index 1ca46be..0432bf2 100644 (file)
@@ -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;