(xmalloc): Cast result of malloc.
(strcpy): Don't declare it.
[MSDOS]: #undef `access'.
#include <../src/config.h>
#include <../src/syswait.h>
+#ifdef MSDOS
+#undef access
+#endif /* MSDOS */
+
#ifdef USG
#include <fcntl.h>
#include <unistd.h>
#undef write
#undef close
-char *malloc ();
-char *strcpy ();
char *concat ();
char *xmalloc ();
#ifndef errno
/* Also check that outname's directory is writeable to the real uid. */
{
- char *buf = (char *) malloc (strlen (outname) + 1);
+ char *buf = (char *) xmalloc (strlen (outname) + 1);
char *p, q;
strcpy (buf, outname);
p = buf + strlen (buf);
xmalloc (size)
unsigned size;
{
- char *result = malloc (size);
+ char *result = (char *) malloc (size);
if (!result)
fatal ("virtual memory exhausted", 0);
return result;