* po/bfd.pot: Updated by the Translation project.
[deliverable/binutils-gdb.git] / gprof / gmon_io.c
index bf74c263bd0ee6b1f1e251593a4e466346b79471..f48d3bcc1f0b485425f96ad352b9b83171a902f7 100644 (file)
@@ -493,13 +493,13 @@ gmon_out_read (const char *filename)
       if (!histograms)
        {
          num_histograms = 1;
-         histograms = xmalloc (sizeof (struct histogram));
+         histograms = (struct histogram *) xmalloc (sizeof (struct histogram));
          histograms->lowpc = tmp.low_pc;
          histograms->highpc = tmp.high_pc;
          histograms->num_bins = hist_num_bins;
          hist_scale = (double)((tmp.high_pc - tmp.low_pc) / sizeof (UNIT))
            / hist_num_bins;
-         histograms->sample = xmalloc (hist_num_bins * sizeof (int));
+         histograms->sample = (int *) xmalloc (hist_num_bins * sizeof (int));
          memset (histograms->sample, 0, 
                  hist_num_bins * sizeof (int));
        }
This page took 0.024967 seconds and 4 git commands to generate.