From: Karl Heuer Date: Sat, 20 Jan 1996 20:51:31 +0000 (+0000) Subject: (pop_retrieve, getline): Avoid type clashes. X-Git-Tag: emacs-19.34~1622 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7d6659459e84fb673beaba4dc727f81a409203b5;p=emacs.git (pop_retrieve, getline): Avoid type clashes. --- diff --git a/lib-src/pop.c b/lib-src/pop.c index 0a57f578b46..77d7595801b 100644 --- a/lib-src/pop.c +++ b/lib-src/pop.c @@ -76,6 +76,7 @@ extern char *getenv (/* char * */); extern char *getlogin (/* void */); extern char *getpass (/* char * */); extern char *strerror (/* int */); +extern char *index (); #ifdef KERBEROS #ifndef KRB5 @@ -560,7 +561,7 @@ pop_retrieve (server, message, markfrom) * allocate more space for them below. */ bufsize = sizes[0] + (markfrom ? 5 : 0); - ptr = malloc (bufsize); + ptr = (char *)malloc (bufsize); free ((char *) IDs); free ((char *) sizes); @@ -587,7 +588,7 @@ pop_retrieve (server, message, markfrom) if (++fromcount == 5) { bufsize += 5; - ptr = realloc (ptr, bufsize); + ptr = (char *)realloc (ptr, bufsize); if (! ptr) { strcpy (pop_error, "Out of memory in pop_retrieve"); @@ -1234,7 +1235,7 @@ getline (server) if (server->data == server->buffer_size - 1) { server->buffer_size += GETLINE_INCR; - server->buffer = realloc (server->buffer, server->buffer_size); + server->buffer = (char *)realloc (server->buffer, server->buffer_size); if (! server->buffer) { strcpy (pop_error, "Out of memory in getline");