diff options
| author | Miles Bader | 2005-02-06 12:06:02 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-02-06 12:06:02 +0000 |
| commit | a359f0e0ff878285654e2f0bcc7bd3b4340c778c (patch) | |
| tree | cc0aff13c751bb8ab7ccaae29082bab32e15fd13 /lib-src | |
| parent | f3d3402885646e6fa79f1ad59fb8a1f9017851d7 (diff) | |
| parent | 56c30d721096a64f151f9ea6e3c76562380da895 (diff) | |
| download | emacs-a359f0e0ff878285654e2f0bcc7bd3b4340c778c.tar.gz emacs-a359f0e0ff878285654e2f0bcc7bd3b4340c778c.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-11
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-69
- miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-71
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-72
src/dispextern.h (xassert): Enable unconditionally.
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-73
- miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-81
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-82
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-12
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-13
Update from CVS
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 10 | ||||
| -rw-r--r-- | lib-src/movemail.c | 17 |
2 files changed, 18 insertions, 9 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 503a8bead04..4ffa38482cf 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2005-02-04 Andreas Schwab <schwab@suse.de> | ||
| 2 | |||
| 3 | * movemail.c (fatal): Accept third parameter and pass down to | ||
| 4 | error. | ||
| 5 | (pfatal_with_name): Pass error string as format parameter instead | ||
| 6 | of as part of format string. | ||
| 7 | (pfatal_and_delete): Likewise. | ||
| 8 | (main): Adjust call to fatal. | ||
| 9 | (xmalloc): Likewise. | ||
| 10 | |||
| 1 | 2005-01-29 Richard M. Stallman <rms@gnu.org> | 11 | 2005-01-29 Richard M. Stallman <rms@gnu.org> |
| 2 | 12 | ||
| 3 | * movemail.c (popmail): Don't use Errmsg as format string. | 13 | * movemail.c (popmail): Don't use Errmsg as format string. |
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index 46c47a97bd6..e4243a1bd66 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c | |||
| @@ -245,7 +245,7 @@ main (argc, argv) | |||
| 245 | #endif | 245 | #endif |
| 246 | 246 | ||
| 247 | if (*outname == 0) | 247 | if (*outname == 0) |
| 248 | fatal ("Destination file name is empty", 0); | 248 | fatal ("Destination file name is empty", 0, 0); |
| 249 | 249 | ||
| 250 | /* Check access to output file. */ | 250 | /* Check access to output file. */ |
| 251 | if (access (outname, F_OK) == 0 && access (outname, W_OK) != 0) | 251 | if (access (outname, F_OK) == 0 && access (outname, W_OK) != 0) |
| @@ -601,12 +601,12 @@ mail_spool_name (inname) | |||
| 601 | /* Print error message and exit. */ | 601 | /* Print error message and exit. */ |
| 602 | 602 | ||
| 603 | void | 603 | void |
| 604 | fatal (s1, s2) | 604 | fatal (s1, s2, s3) |
| 605 | char *s1, *s2; | 605 | char *s1, *s2, *s3; |
| 606 | { | 606 | { |
| 607 | if (delete_lockname) | 607 | if (delete_lockname) |
| 608 | unlink (delete_lockname); | 608 | unlink (delete_lockname); |
| 609 | error (s1, s2, 0); | 609 | error (s1, s2, s3); |
| 610 | exit (EXIT_FAILURE); | 610 | exit (EXIT_FAILURE); |
| 611 | } | 611 | } |
| 612 | 612 | ||
| @@ -631,17 +631,16 @@ void | |||
| 631 | pfatal_with_name (name) | 631 | pfatal_with_name (name) |
| 632 | char *name; | 632 | char *name; |
| 633 | { | 633 | { |
| 634 | char *s = concat ("", strerror (errno), " for %s"); | 634 | fatal ("%s for %s", strerror (errno), name); |
| 635 | fatal (s, name); | ||
| 636 | } | 635 | } |
| 637 | 636 | ||
| 638 | void | 637 | void |
| 639 | pfatal_and_delete (name) | 638 | pfatal_and_delete (name) |
| 640 | char *name; | 639 | char *name; |
| 641 | { | 640 | { |
| 642 | char *s = concat ("", strerror (errno), " for %s"); | 641 | char *s = strerror (errno); |
| 643 | unlink (name); | 642 | unlink (name); |
| 644 | fatal (s, name); | 643 | fatal ("%s for %s", s, name); |
| 645 | } | 644 | } |
| 646 | 645 | ||
| 647 | /* Return a newly-allocated string whose contents concatenate those of s1, s2, s3. */ | 646 | /* Return a newly-allocated string whose contents concatenate those of s1, s2, s3. */ |
| @@ -669,7 +668,7 @@ xmalloc (size) | |||
| 669 | { | 668 | { |
| 670 | long *result = (long *) malloc (size); | 669 | long *result = (long *) malloc (size); |
| 671 | if (!result) | 670 | if (!result) |
| 672 | fatal ("virtual memory exhausted", 0); | 671 | fatal ("virtual memory exhausted", 0, 0); |
| 673 | return result; | 672 | return result; |
| 674 | } | 673 | } |
| 675 | 674 | ||