aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r--gcc/gcov.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/gcov.c b/gcc/gcov.c
index 2a093c6..102b14d 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -218,7 +218,6 @@ static void read_files PROTO ((void));
static void scan_for_source_files PROTO ((void));
static void output_data PROTO ((void));
static void print_usage PROTO ((void)) ATTRIBUTE_NORETURN;
-char * xmalloc ();
int
main (argc, argv)
@@ -238,11 +237,11 @@ main (argc, argv)
return 0;
}
-char *
+PTR
xmalloc (size)
- unsigned size;
+ size_t size;
{
- register char *value = (char *) malloc (size);
+ register PTR value = (PTR) malloc (size);
if (value == 0)
{
fprintf (stderr, "error: virtual memory exhausted");