diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-01-06 03:57:28 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-01-06 03:57:28 +0000 |
commit | 91cf09ac120fe2b0cf1d41adad1cba238564f679 (patch) | |
tree | 0846175c179a2d8764f430dd436425bf1d0f0613 /lib-src/movemail.c | |
parent | 20333561440df66d09615f7abb07d86519207a30 (diff) | |
download | emacs-91cf09ac120fe2b0cf1d41adad1cba238564f679.tar.gz |
(malloc): Don't declare it.
(xmalloc): Cast result of malloc.
(strcpy): Don't declare it.
[MSDOS]: #undef `access'.
Diffstat (limited to 'lib-src/movemail.c')
-rw-r--r-- | lib-src/movemail.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index 98134746e61..eda7767d92e 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c @@ -56,6 +56,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #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 @@ extern int lk_open (), lk_close (); #undef write #undef close -char *malloc (); -char *strcpy (); char *concat (); char *xmalloc (); #ifndef errno @@ -128,7 +130,7 @@ main (argc, argv) /* 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 @@ char * xmalloc (size) unsigned size; { - char *result = malloc (size); + char *result = (char *) malloc (size); if (!result) fatal ("virtual memory exhausted", 0); return result; |