aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/movemail.c
diff options
context:
space:
mode:
authorStefan Monnier2010-09-13 16:40:48 +0200
committerStefan Monnier2010-09-13 16:40:48 +0200
commitcc390e46c7ba95b76ea133d98fd386214cd01709 (patch)
treeead4400d22bd07214b782ff7e46e79d473fac419 /lib-src/movemail.c
parentc566235d981eba73c88bbff00b6a1d88360b6e9f (diff)
parentc5fe4acb5fb456d6e8e147d8bc7981ce56c5c03d (diff)
downloademacs-cc390e46c7ba95b76ea133d98fd386214cd01709.tar.gz
emacs-cc390e46c7ba95b76ea133d98fd386214cd01709.zip
Merge from trunk
Diffstat (limited to 'lib-src/movemail.c')
-rw-r--r--lib-src/movemail.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index bb4a922014c..4ccdc93688c 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -147,11 +147,11 @@ static char *mail_spool_name ();
147char *strerror (int); 147char *strerror (int);
148#endif 148#endif
149 149
150static void fatal (char *s1, char *s2, char *s3) NO_RETURN; 150static void fatal (const char *s1, const char *s2, const char *s3) NO_RETURN;
151static void error (char *s1, char *s2, char *s3); 151static void error (const char *s1, const char *s2, const char *s3);
152static void pfatal_with_name (char *name) NO_RETURN; 152static void pfatal_with_name (char *name) NO_RETURN;
153static void pfatal_and_delete (char *name) NO_RETURN; 153static void pfatal_and_delete (char *name) NO_RETURN;
154static char *concat (char *s1, char *s2, char *s3); 154static char *concat (const char *s1, const char *s2, const char *s3);
155static long *xmalloc (unsigned int size); 155static long *xmalloc (unsigned int size);
156#ifdef MAIL_USE_POP 156#ifdef MAIL_USE_POP
157static int popmail (char *mailbox, char *outfile, int preserve, char *password, int reverse_order); 157static int popmail (char *mailbox, char *outfile, int preserve, char *password, int reverse_order);
@@ -589,7 +589,7 @@ mail_spool_name (inname)
589/* Print error message and exit. */ 589/* Print error message and exit. */
590 590
591static void 591static void
592fatal (char *s1, char *s2, char *s3) 592fatal (const char *s1, const char *s2, const char *s3)
593{ 593{
594 if (delete_lockname) 594 if (delete_lockname)
595 unlink (delete_lockname); 595 unlink (delete_lockname);
@@ -601,7 +601,7 @@ fatal (char *s1, char *s2, char *s3)
601 are args for it or null. */ 601 are args for it or null. */
602 602
603static void 603static void
604error (char *s1, char *s2, char *s3) 604error (const char *s1, const char *s2, const char *s3)
605{ 605{
606 fprintf (stderr, "movemail: "); 606 fprintf (stderr, "movemail: ");
607 if (s3) 607 if (s3)
@@ -630,7 +630,7 @@ pfatal_and_delete (char *name)
630/* Return a newly-allocated string whose contents concatenate those of s1, s2, s3. */ 630/* Return a newly-allocated string whose contents concatenate those of s1, s2, s3. */
631 631
632static char * 632static char *
633concat (char *s1, char *s2, char *s3) 633concat (const char *s1, const char *s2, const char *s3)
634{ 634{
635 int len1 = strlen (s1), len2 = strlen (s2), len3 = strlen (s3); 635 int len1 = strlen (s1), len2 = strlen (s2), len3 = strlen (s3);
636 char *result = (char *) xmalloc (len1 + len2 + len3 + 1); 636 char *result = (char *) xmalloc (len1 + len2 + len3 + 1);