aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/fakemail.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c
index da3911b4b49..4a2618ad5ce 100644
--- a/lib-src/fakemail.c
+++ b/lib-src/fakemail.c
@@ -166,22 +166,22 @@ fatal (s1, s2)
166 166
167/* Like malloc but get fatal error if memory is exhausted. */ 167/* Like malloc but get fatal error if memory is exhausted. */
168 168
169static char * 169static long *
170xmalloc (size) 170xmalloc (size)
171 int size; 171 int size;
172{ 172{
173 char *result = (char *) malloc (((unsigned) size)); 173 long *result = (long *) malloc (((unsigned) size));
174 if (result == ((char *) NULL)) 174 if (result == ((long *) NULL))
175 fatal ("virtual memory exhausted", 0); 175 fatal ("virtual memory exhausted", 0);
176 return result; 176 return result;
177} 177}
178 178
179static char * 179static long *
180xrealloc (ptr, size) 180xrealloc (ptr, size)
181 char *ptr; 181 long *ptr;
182 int size; 182 int size;
183{ 183{
184 char *result = (char *) realloc (ptr, ((unsigned) size)); 184 long *result = (long *) realloc (ptr, ((unsigned) size));
185 if (result == ((char *) NULL)) 185 if (result == ((char *) NULL))
186 fatal ("virtual memory exhausted"); 186 fatal ("virtual memory exhausted");
187 return result; 187 return result;