# HG changeset patch # User Richard M. Stallman # Date 757828648 0 # Node ID 726a3dc867a6784403977cd46aa4c1a9c8d1bf41 # Parent 44e193cc8f49b56634091537a03a8f922b3f2a2f (malloc): Don't declare it. (xmalloc): Cast result of malloc. (strcpy): Don't declare it. [MSDOS]: #undef `access'. diff -r 44e193cc8f49 -r 726a3dc867a6 lib-src/movemail.c --- a/lib-src/movemail.c Thu Jan 06 03:56:59 1994 +0000 +++ b/lib-src/movemail.c Thu Jan 06 03:57:28 1994 +0000 @@ -56,6 +56,10 @@ #include <../src/config.h> #include <../src/syswait.h> +#ifdef MSDOS +#undef access +#endif /* MSDOS */ + #ifdef USG #include #include @@ -81,8 +85,6 @@ #undef write #undef close -char *malloc (); -char *strcpy (); char *concat (); char *xmalloc (); #ifndef errno @@ -128,7 +130,7 @@ /* 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); @@ -399,7 +401,7 @@ xmalloc (size) unsigned size; { - char *result = malloc (size); + char *result = (char *) malloc (size); if (!result) fatal ("virtual memory exhausted", 0); return result;