aboutsummaryrefslogtreecommitdiff
path: root/gas/xmalloc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-09-11 00:15:39 +0000
committerIan Lance Taylor <ian@airs.com>1993-09-11 00:15:39 +0000
commita938b1d6ba978dd1be27a6761a273be19acaf685 (patch)
treec9264ba86b79feebd264ccbdd705db7de16095c3 /gas/xmalloc.c
parentd6a99838742b10f879e31557c4c7effe21b2d47e (diff)
downloadgdb-a938b1d6ba978dd1be27a6761a273be19acaf685.zip
gdb-a938b1d6ba978dd1be27a6761a273be19acaf685.tar.gz
gdb-a938b1d6ba978dd1be27a6761a273be19acaf685.tar.bz2
More gcc lint with harsher warning options.
Diffstat (limited to 'gas/xmalloc.c')
-rw-r--r--gas/xmalloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/xmalloc.c b/gas/xmalloc.c
index 5a03d0d..8b39ee5 100644
--- a/gas/xmalloc.c
+++ b/gas/xmalloc.c
@@ -47,11 +47,11 @@
char *
xmalloc (n)
- long n;
+ unsigned long n;
{
char *retval;
- retval = malloc ((unsigned) n);
+ retval = malloc (n);
if (retval == NULL)
error ("virtual memory exceeded");
return (retval);
@@ -60,9 +60,9 @@ xmalloc (n)
char *
xrealloc (ptr, n)
register char *ptr;
- long n;
+ unsigned long n;
{
- ptr = realloc (ptr, (unsigned) n);
+ ptr = realloc (ptr, n);
if (ptr == 0)
error ("virtual memory exceeded");
return (ptr);