diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-09-11 00:15:39 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-09-11 00:15:39 +0000 |
commit | a938b1d6ba978dd1be27a6761a273be19acaf685 (patch) | |
tree | c9264ba86b79feebd264ccbdd705db7de16095c3 /gas/xmalloc.c | |
parent | d6a99838742b10f879e31557c4c7effe21b2d47e (diff) | |
download | gdb-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.c | 8 |
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); |