/[emacs]/emacs/lib-src/cvtmail.c
ViewVC logotype

Diff of /emacs/lib-src/cvtmail.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by pj, Sat Dec 29 22:18:45 2001 UTC revision 1.10.4.1 by miles, Fri Apr 4 06:19:54 2003 UTC
# Line 40  Boston, MA 02111-1307, USA.  */ Line 40  Boston, MA 02111-1307, USA.  */
40  #include <stdio.h>  #include <stdio.h>
41    
42  #ifndef HAVE_STDLIB_H  #ifndef HAVE_STDLIB_H
 char *malloc ();  
 char *realloc ();  
43  char *getenv ();  char *getenv ();
 #else  
 #include <stdlib.h>  
44  #endif  #endif
45    
46  char *xmalloc __P ((unsigned));  char *xmalloc __P ((unsigned));
# Line 168  char * Line 164  char *
164  xmalloc (size)  xmalloc (size)
165       unsigned size;       unsigned size;
166  {  {
167    char *result = malloc (size);    char *result = (char *) malloc (size);
168    if (!result)    if (!result)
169      fatal ("virtual memory exhausted", 0);      fatal ("virtual memory exhausted", 0);
170    return result;    return result;
# Line 179  xrealloc (ptr, size) Line 175  xrealloc (ptr, size)
175       char *ptr;       char *ptr;
176       unsigned size;       unsigned size;
177  {  {
178    char *result = realloc (ptr, size);    char *result = (char *) realloc (ptr, size);
179    if (!result)    if (!result)
180      fatal ("virtual memory exhausted", 0);      fatal ("virtual memory exhausted", 0);
181    return result;    return result;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.10.4.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26