diff lib-src/movemail.c @ 17069:0b2b8a0f7570

(popmail): Remove some unnecessary function declarations. (popmail, pop_retr): Since popmail always passes mbx_write and mbf into pop_retr, there's no reason to pass in mbx_write, and the file argument can be declared FILE * explicitly. This fixes a compilation problem on systems with 64-bit pointers.
author Karl Heuer <kwzh@gnu.org>
date Sun, 23 Feb 1997 08:47:57 +0000
parents 53c337a6e39d
children d3d968d0773a
line wrap: on
line diff
--- a/lib-src/movemail.c	Sun Feb 23 08:40:41 1997 +0000
+++ b/lib-src/movemail.c	Sun Feb 23 08:47:57 1997 +0000
@@ -679,9 +679,7 @@
   int mbfi;
   FILE *mbf;
   char *getenv ();
-  int mbx_write ();
   popserver server;
-  extern char *strerror ();
 
   server = pop_open (0, user, password, POP_NO_GETPASS);
   if (! server)
@@ -723,7 +721,7 @@
   for (i = 1; i <= nmsgs; i++)
     {
       mbx_delimit_begin (mbf);
-      if (pop_retr (server, i, mbx_write, mbf) != OK)
+      if (pop_retr (server, i, mbf) != OK)
 	{
 	  error (Errmsg);
 	  close (mbfi);
@@ -780,9 +778,10 @@
   return (0);
 }
 
-pop_retr (server, msgno, action, arg)
+int
+pop_retr (server, msgno, arg)
      popserver server;
-     int (*action) ();
+     FILE *arg;
 {
   extern char *strerror ();
   char *line;
@@ -800,7 +799,7 @@
       if (! line)
 	break;
 
-      if ((*action)(line, arg) != OK)
+      if (mbx_write (line, arg) != OK)
 	{
 	  strcpy (Errmsg, strerror (errno));
 	  pop_close (server);