changeset 72034:ca1a855f01ae

(fatal): Drop second parameter and treat first parameter as a plain string. Callers changed.
author Andreas Schwab <schwab@suse.de>
date Thu, 20 Jul 2006 13:33:48 +0000
parents a77b2ac7cfec
children 66d6bb15eb58
files lib-src/fakemail.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/fakemail.c	Thu Jul 20 11:28:48 2006 +0000
+++ b/lib-src/fakemail.c	Thu Jul 20 13:33:48 2006 +0000
@@ -175,10 +175,10 @@
 /* Print error message and exit.  */
 
 static void
-fatal (s1, s2)
-     char *s1, *s2;
+fatal (s1)
+     char *s1;
 {
-  error (s1, s2);
+  error ("%s", s1);
   exit (EXIT_FAILURE);
 }
 
@@ -190,7 +190,7 @@
 {
   long *result = (long *) malloc (((unsigned) size));
   if (result == ((long *) NULL))
-    fatal ("virtual memory exhausted", 0);
+    fatal ("virtual memory exhausted");
   return result;
 }
 
@@ -377,7 +377,7 @@
   tm = localtime (&idiotic_interface);
   if (! (tm && TM_YEAR_IN_ASCTIME_RANGE (tm->tm_year)
 	 && (the_date = asctime (tm))))
-    fatal ("current time is out of range", 0);
+    fatal ("current time is out of range");
   /* the_date has an unwanted newline at the end */
   date_length = strlen (the_date) - 1;
   the_date[date_length] = '\0';