# HG changeset patch # User Andreas Schwab # Date 1153402428 0 # Node ID ca1a855f01ae31f8db3dc23ab3d314c8e078288b # Parent a77b2ac7cfec5b41d1f6b63c5f6c84b895b3e2d1 (fatal): Drop second parameter and treat first parameter as a plain string. Callers changed. diff -r a77b2ac7cfec -r ca1a855f01ae lib-src/fakemail.c --- 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';