This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH RFC] Protoize valops.c, valprint.c
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH RFC] Protoize valops.c, valprint.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Sun, 5 Nov 2000 22:01:22 -0700
More protoization...
* valops.c (typecmp): Protoize.
* valprint.c (strcat_longest): Protoize.
Index: valops.c
===================================================================
RCS file: /cvs/src/src/gdb/valops.c,v
retrieving revision 1.26
diff -u -r1.26 valops.c
--- valops.c 2000/10/26 07:41:25 1.26
+++ valops.c 2000/11/06 04:56:58
@@ -1937,10 +1937,7 @@
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: valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/valprint.c,v
retrieving revision 1.7
diff -u -r1.7 valprint.c
--- valprint.c 2000/10/30 15:32:51 1.7
+++ valprint.c 2000/11/06 04:57:00
@@ -414,13 +414,10 @@
#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;