Mercurial > emacs
changeset 5446:726a3dc867a6
(malloc): Don't declare it.
(xmalloc): Cast result of malloc.
(strcpy): Don't declare it.
[MSDOS]: #undef `access'.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 06 Jan 1994 03:57:28 +0000 |
parents | 44e193cc8f49 |
children | 6f0905b05218 |
files | lib-src/movemail.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 <fcntl.h> #include <unistd.h> @@ -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;