--- MITgcm/tools/mpack-1.6/unixos.c 2003/08/26 20:45:25 1.1 +++ MITgcm/tools/mpack-1.6/unixos.c 2004/11/23 15:52:35 1.2 @@ -39,7 +39,7 @@ #endif extern int errno; -extern char *malloc(); +/* extern char *malloc(); */ extern char *getenv(); int overwrite_files = 0; @@ -75,7 +75,7 @@ } } - result = malloc(25+strlen(hostname)); + result = (char *)malloc(25+strlen(hostname)); sprintf(result, "%d.%d@%s", pid, curtime++, hostname); return result; }