This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
gprof won't build with K&R C
- To: binutils at sources dot redhat dot com
- Subject: gprof won't build with K&R C
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 16 May 2001 01:01:29 -0300
- Organization: GCC Team, Red Hat
I thought I had posted this before, but I can't find the patch file
nor a message I'd have marked to wait for approval, so I'm posting
this (again?) now. Ok to install?
Index: gprof/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* gmon_io.c (gmon_io_read, gmon_io_write_vma,
gmon_io_write_32, gmon_io_write_8, gmon_io_write): Adjust
argument list for K&R C.
Index: gprof/gmon_io.c
===================================================================
RCS file: /cvs/src/src/gprof/gmon_io.c,v
retrieving revision 1.7
diff -u -p -r1.7 gmon_io.c
--- gprof/gmon_io.c 2001/03/14 03:14:56 1.7
+++ gprof/gmon_io.c 2001/05/16 03:48:00
@@ -76,7 +76,7 @@ DEFUN (gmon_io_read_32, (ifp, valp), FIL
}
int
-DEFUN (gmon_io_read, (ifp, valp), FILE * ifp AND char *buf AND size_t n)
+DEFUN (gmon_io_read, (ifp, buf, n), FILE * ifp AND char *buf AND size_t n)
{
if (fread (buf, 1, n, ifp) != n)
return 1;
@@ -84,7 +84,7 @@ DEFUN (gmon_io_read, (ifp, valp), FILE *
}
int
-DEFUN (gmon_io_write_vma, (ofp, valp), FILE * ofp AND bfd_vma val)
+DEFUN (gmon_io_write_vma, (ofp, val), FILE * ofp AND bfd_vma val)
{
char buf[8];
@@ -111,7 +111,7 @@ DEFUN (gmon_io_write_vma, (ofp, valp), F
}
int
-DEFUN (gmon_io_write_32, (ofp, valp), FILE * ofp AND unsigned int val)
+DEFUN (gmon_io_write_32, (ofp, val), FILE * ofp AND unsigned int val)
{
char buf[4];
@@ -122,7 +122,7 @@ DEFUN (gmon_io_write_32, (ofp, valp), FI
}
int
-DEFUN (gmon_io_write_8, (ofp, valp), FILE * ofp AND unsigned char val)
+DEFUN (gmon_io_write_8, (ofp, val), FILE * ofp AND unsigned char val)
{
char buf[1];
@@ -133,7 +133,7 @@ DEFUN (gmon_io_write_8, (ofp, valp), FIL
}
int
-DEFUN (gmon_io_write, (ofp, valp), FILE * ofp AND char *buf AND size_t n)
+DEFUN (gmon_io_write, (ofp, buf, n), FILE * ofp AND char *buf AND size_t n)
{
if (fwrite (buf, 1, n, ofp) != n)
return 1;
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me