diff options
| author | Stefan Monnier | 2010-09-13 16:40:48 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-09-13 16:40:48 +0200 |
| commit | cc390e46c7ba95b76ea133d98fd386214cd01709 (patch) | |
| tree | ead4400d22bd07214b782ff7e46e79d473fac419 /lib-src/movemail.c | |
| parent | c566235d981eba73c88bbff00b6a1d88360b6e9f (diff) | |
| parent | c5fe4acb5fb456d6e8e147d8bc7981ce56c5c03d (diff) | |
| download | emacs-cc390e46c7ba95b76ea133d98fd386214cd01709.tar.gz emacs-cc390e46c7ba95b76ea133d98fd386214cd01709.zip | |
Merge from trunk
Diffstat (limited to 'lib-src/movemail.c')
| -rw-r--r-- | lib-src/movemail.c | 12 |
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 (); | |||
| 147 | char *strerror (int); | 147 | char *strerror (int); |
| 148 | #endif | 148 | #endif |
| 149 | 149 | ||
| 150 | static void fatal (char *s1, char *s2, char *s3) NO_RETURN; | 150 | static void fatal (const char *s1, const char *s2, const char *s3) NO_RETURN; |
| 151 | static void error (char *s1, char *s2, char *s3); | 151 | static void error (const char *s1, const char *s2, const char *s3); |
| 152 | static void pfatal_with_name (char *name) NO_RETURN; | 152 | static void pfatal_with_name (char *name) NO_RETURN; |
| 153 | static void pfatal_and_delete (char *name) NO_RETURN; | 153 | static void pfatal_and_delete (char *name) NO_RETURN; |
| 154 | static char *concat (char *s1, char *s2, char *s3); | 154 | static char *concat (const char *s1, const char *s2, const char *s3); |
| 155 | static long *xmalloc (unsigned int size); | 155 | static long *xmalloc (unsigned int size); |
| 156 | #ifdef MAIL_USE_POP | 156 | #ifdef MAIL_USE_POP |
| 157 | static int popmail (char *mailbox, char *outfile, int preserve, char *password, int reverse_order); | 157 | static 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 | ||
| 591 | static void | 591 | static void |
| 592 | fatal (char *s1, char *s2, char *s3) | 592 | fatal (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 | ||
| 603 | static void | 603 | static void |
| 604 | error (char *s1, char *s2, char *s3) | 604 | error (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 | ||
| 632 | static char * | 632 | static char * |
| 633 | concat (char *s1, char *s2, char *s3) | 633 | concat (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); |