]> code.delx.au - gnu-emacs/blobdiff - lib-src/movemail.c
(xml-parse-elem-type): Fix use of character constant.
[gnu-emacs] / lib-src / movemail.c
index cfe817c11197c1f4d3339c26c360da922ff39cd8..406dd8775bccc18b62f65f3958ac0093bf06926e 100644 (file)
@@ -39,11 +39,11 @@ Boston, MA 02111-1307, USA.  */
  * "po:username".  This will cause movemail to open a connection to
  * a pop server running on $MAILHOST (environment variable).  Movemail
  * must be setuid to root in order to work with POP.
- * 
+ *
  * New module: popmail.c
  * Modified routines:
  *     main - added code within #ifdef MAIL_USE_POP; added setuid (getuid ())
- *             after POP code. 
+ *             after POP code.
  * New routines in movemail.c:
  *     get_errmsg - return pointer to system error message
  *
@@ -143,7 +143,12 @@ static char *mail_spool_name ();
 extern int errno;
 #endif
 char *strerror ();
-extern char *rindex ();
+#ifdef HAVE_INDEX
+extern char *index __P ((const char *, int));
+#endif
+#ifdef HAVE_RINDEX
+extern char *rindex __P((const char *, int));
+#endif
 
 void fatal ();
 void error ();
@@ -453,7 +458,7 @@ main (argc, argv)
 
          pfatal_with_name (inname);
        }
-  
+
       {
        char buf[1024];
 
@@ -806,7 +811,7 @@ popmail (mailbox, outfile, preserve, password, reverse_order)
 #ifdef BSD_SYSTEM
   if (fsync (mbfi) < 0)
     {
-      error ("Error in fsync: %s", strerror (errno));
+      error ("Error in fsync: %s", strerror (errno), 0);
       return (1);
     }
 #endif
@@ -833,13 +838,14 @@ popmail (mailbox, outfile, preserve, password, reverse_order)
       error ("Error from POP server: %s", pop_error, 0);
       return (1);
     }
-    
+
   return (0);
 }
 
 int
 pop_retr (server, msgno, arg)
      popserver server;
+     int msgno;
      FILE *arg;
 {
   extern char *strerror ();
@@ -907,7 +913,7 @@ mbx_write (line, len, mbf)
       line++;
       len--;
     }
-  if (fwrite (line, 1, len, mbf) != len) 
+  if (fwrite (line, 1, len, mbf) != len)
     return (NOTOK);
   if (fputc (0x0a, mbf) == EOF)
     return (NOTOK);