changeset 14238:b55e97028105

(pop_retrieve, getline): Avoid type clashes.
author Karl Heuer <kwzh@gnu.org>
date Sat, 20 Jan 1996 20:51:31 +0000
parents dcb3d2fa5afc
children 78ef3e237424
files lib-src/pop.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/pop.c	Sat Jan 20 20:47:48 1996 +0000
+++ b/lib-src/pop.c	Sat Jan 20 20:51:31 1996 +0000
@@ -76,6 +76,7 @@
 extern char *getlogin (/* void */);
 extern char *getpass (/* char * */);
 extern char *strerror (/* int */);
+extern char *index ();
 
 #ifdef KERBEROS
 #ifndef KRB5
@@ -560,7 +561,7 @@
    * 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 @@
 	  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 @@
       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");