# HG changeset patch # User Richard M. Stallman # Date 1045306372 0 # Node ID dc31cb80909b8819e0441a4971278ca87c2aeb8e # Parent 2f5914b4e18a783968e99a5fc03f2a6e2fc7e80b (yow): Cast result of malloc and realloc. (malloc, realloc): Declarations deleted. diff -r 2f5914b4e18a -r dc31cb80909b lib-src/yow.c --- a/lib-src/yow.c Sat Feb 15 10:51:39 2003 +0000 +++ b/lib-src/yow.c Sat Feb 15 10:52:52 2003 +0000 @@ -50,10 +50,6 @@ &res;}) #endif -#ifndef HAVE_STDLIB_H -char *malloc __P ((size_t size))), *realloc __P ((POINTER_TYPE *ptr, size_t size)); -#endif - void yow(); void setup_yow(); @@ -158,7 +154,7 @@ } bufsize = BUFSIZE; - buf = malloc(bufsize); + buf = (char *) malloc(bufsize); if (buf == (char *)0) { fprintf(stderr, "yow: virtual memory exhausted\n"); exit (3); @@ -171,7 +167,7 @@ if (i == bufsize-1) { /* Yow! Is this quotation too long yet? */ bufsize *= 2; - buf = realloc(buf, bufsize); + buf = (char *) realloc(buf, bufsize); if (buf == (char *)0) { fprintf(stderr, "yow: virtual memory exhausted\n"); exit (3);