aboutsummaryrefslogtreecommitdiff
path: root/gmon/bb_exit_func.c
diff options
context:
space:
mode:
Diffstat (limited to 'gmon/bb_exit_func.c')
-rw-r--r--gmon/bb_exit_func.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gmon/bb_exit_func.c b/gmon/bb_exit_func.c
index dc9def2bb5..53ddbfdbe9 100644
--- a/gmon/bb_exit_func.c
+++ b/gmon/bb_exit_func.c
@@ -18,7 +18,7 @@
Boston, MA 02111-1307, USA. */
/* __bb_exit_func() dumps all the basic-block statistics linked into
- the bb_head chain to .d files. */
+ the __bb_head chain to .d files. */
#include <sys/gmon_out.h>
#include <sys/types.h>
@@ -55,8 +55,8 @@ __bb_exit_func (void)
perror (OUT_NAME);
return;
}
- bcopy (GMON_MAGIC, &ghdr.cookie[0], 4);
- bcopy (&version, &ghdr.version, sizeof (version));
+ memcpy (&ghdr.cookie[0], GMON_MAGIC, 4);
+ memcpy (&ghdr.version, &version, sizeof (version));
fwrite (&ghdr, sizeof (ghdr), 1, fp);
for (ptr = __bb_head; ptr != 0; ptr = ptr->next)