Fix build errors and warnings in zoneinfo and virtualmips.
This commit is contained in:
1
src/cmd/yacc/.gitignore
vendored
Normal file
1
src/cmd/yacc/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
yacc
|
||||
@@ -16,7 +16,7 @@
|
||||
#endif /* !MAL */
|
||||
|
||||
char *
|
||||
imalloc(n)
|
||||
imalloc(int n)
|
||||
{
|
||||
#ifdef MAL
|
||||
register char * result;
|
||||
@@ -33,7 +33,7 @@ imalloc(n)
|
||||
}
|
||||
|
||||
char *
|
||||
icalloc(nelem, elsize)
|
||||
icalloc(int nelem, int elsize)
|
||||
{
|
||||
if (nelem == 0 || elsize == 0)
|
||||
nelem = elsize = 1;
|
||||
@@ -41,8 +41,7 @@ icalloc(nelem, elsize)
|
||||
}
|
||||
|
||||
char *
|
||||
irealloc(pointer, size)
|
||||
char * pointer;
|
||||
irealloc(char *pointer, int size)
|
||||
{
|
||||
if (NULLMAL(pointer))
|
||||
return imalloc(size);
|
||||
|
||||
Reference in New Issue
Block a user