diff options
| author | Richard M. Stallman | 1995-08-11 01:44:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-08-11 01:44:00 +0000 |
| commit | 65119039af34599f5f9fe7df94acf774c1a6237e (patch) | |
| tree | 2ee375507b5648f47d7e6ce099f52b8a6a223ceb /lib-src | |
| parent | 0d8ef3f41adc67c1d931ae2fb7b63d621b9128c9 (diff) | |
| download | emacs-65119039af34599f5f9fe7df94acf774c1a6237e.tar.gz emacs-65119039af34599f5f9fe7df94acf774c1a6237e.zip | |
(xmalloc, xrealloc): Use return-type long *.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/fakemail.c | 12 |
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 | ||
| 169 | static char * | 169 | static long * |
| 170 | xmalloc (size) | 170 | xmalloc (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 | ||
| 179 | static char * | 179 | static long * |
| 180 | xrealloc (ptr, size) | 180 | xrealloc (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; |