More gcc lint with harsher warning options.

This commit is contained in:
Ian Lance Taylor
1993-09-11 00:15:39 +00:00
parent d6a9983874
commit a938b1d6ba
3 changed files with 14 additions and 26 deletions

View File

@ -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);