summaryrefslogtreecommitdiffstats
path: root/mail/dkimap4/files/patch-movemail.c
blob: 95ed6fa9a1b5a8171959e0b8c2cb97d43612bf94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- movemail/movemail.c.orig	Tue Jul  4 23:07:49 2000
+++ movemail/movemail.c	Sun May 27 02:21:01 2001
@@ -155,7 +155,7 @@
 /* Nonzero means this is name of a lock file to delete on fatal error.  */
 char *delete_lockname;
 
-void
+int
 main (argc, argv)
      int argc;
      char **argv;
@@ -258,7 +258,7 @@
     p--;
   *p = 0;
   strcpy (p, "EXXXXXX");
-  mktemp (tempname);
+  mkstemp (tempname);
   unlink (tempname);
 
   while (1)
@@ -840,18 +840,3 @@
 }
 
 #endif /* MAIL_USE_POP */
-
-#ifndef HAVE_STRERROR
-char *
-strerror (errnum)
-     int errnum;
-{
-  extern char *sys_errlist[];
-  extern int sys_nerr;
-
-  if (errnum >= 0 && errnum < sys_nerr)
-    return sys_errlist[errnum];
-  return (char *) "Unknown error";
-}
-
-#endif /* ! HAVE_STRERROR */
OpenPOWER on IntegriCloud