aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog11
-rw-r--r--lib-src/ebrowse.c2
-rw-r--r--lib-src/emacsclient.c2
-rw-r--r--lib-src/fakemail.c10
4 files changed, 19 insertions, 6 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index e792753b748..6be0910d27a 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,14 @@
12006-07-20 Andreas Schwab <schwab@suse.de>
2
3 * fakemail.c (fatal): Drop second parameter and treat first
4 parameter as a plain string. Callers changed.
5
62006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7
8 * ebrowse.c (usage, version): Mark as NO_RETURN.
9
10 * emacsclient.c (print_help_and_exit): Likewise.
11
12006-07-10 Francesco Potort,Al(B <pot@gnu.org> 122006-07-10 Francesco Potort,Al(B <pot@gnu.org>
2 13
3 * etags.c (absolute_filename): Free unused space (cosmetic change). 14 * etags.c (absolute_filename): Free unused space (cosmetic change).
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c
index 398dd10896e..1880f1655ee 100644
--- a/lib-src/ebrowse.c
+++ b/lib-src/ebrowse.c
@@ -533,6 +533,8 @@ struct sym *parse_qualified_ident_or_type P_ ((char **));
533void parse_qualified_param_ident_or_type P_ ((char **)); 533void parse_qualified_param_ident_or_type P_ ((char **));
534int globals P_ ((int)); 534int globals P_ ((int));
535void yyerror P_ ((char *, char *)); 535void yyerror P_ ((char *, char *));
536void usage P_ ((int)) NO_RETURN;
537void version P_ (()) NO_RETURN;
536 538
537 539
538 540
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 870a39b9101..3d15a06b147 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -106,7 +106,7 @@ const char * alternate_editor = NULL;
106/* If non-NULL, the filename of the UNIX socket. */ 106/* If non-NULL, the filename of the UNIX socket. */
107char *socket_name = NULL; 107char *socket_name = NULL;
108 108
109void print_help_and_exit (); 109void print_help_and_exit () NO_RETURN;
110 110
111struct option longopts[] = 111struct option longopts[] =
112{ 112{
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c
index 30d39db533e..be9d6e09bae 100644
--- a/lib-src/fakemail.c
+++ b/lib-src/fakemail.c
@@ -175,10 +175,10 @@ error (s1, s2)
175/* Print error message and exit. */ 175/* Print error message and exit. */
176 176
177static void 177static void
178fatal (s1, s2) 178fatal (s1)
179 char *s1, *s2; 179 char *s1;
180{ 180{
181 error (s1, s2); 181 error ("%s", s1);
182 exit (EXIT_FAILURE); 182 exit (EXIT_FAILURE);
183} 183}
184 184
@@ -190,7 +190,7 @@ xmalloc (size)
190{ 190{
191 long *result = (long *) malloc (((unsigned) size)); 191 long *result = (long *) malloc (((unsigned) size));
192 if (result == ((long *) NULL)) 192 if (result == ((long *) NULL))
193 fatal ("virtual memory exhausted", 0); 193 fatal ("virtual memory exhausted");
194 return result; 194 return result;
195} 195}
196 196
@@ -377,7 +377,7 @@ make_file_preface ()
377 tm = localtime (&idiotic_interface); 377 tm = localtime (&idiotic_interface);
378 if (! (tm && TM_YEAR_IN_ASCTIME_RANGE (tm->tm_year) 378 if (! (tm && TM_YEAR_IN_ASCTIME_RANGE (tm->tm_year)
379 && (the_date = asctime (tm)))) 379 && (the_date = asctime (tm))))
380 fatal ("current time is out of range", 0); 380 fatal ("current time is out of range");
381 /* the_date has an unwanted newline at the end */ 381 /* the_date has an unwanted newline at the end */
382 date_length = strlen (the_date) - 1; 382 date_length = strlen (the_date) - 1;
383 the_date[date_length] = '\0'; 383 the_date[date_length] = '\0';