diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-11-29 02:50:04 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-11-29 02:50:04 +0000 |
commit | b0791fa925202359a56169bf0e28d89cd49f1c33 (patch) | |
tree | f852635f5817ab1e26919869bfbda84e5cfbce64 /gcc/f/fini.c | |
parent | 14657de8f1fd8fff5cb3bed37d91267beea5e1f3 (diff) | |
download | gcc-b0791fa925202359a56169bf0e28d89cd49f1c33.zip gcc-b0791fa925202359a56169bf0e28d89cd49f1c33.tar.gz gcc-b0791fa925202359a56169bf0e28d89cd49f1c33.tar.bz2 |
com.c (ffecom_file_, [...]): Constify a char*.
* com.c (ffecom_file_, ffecom_file, file_buf,
ffecom_open_include_): Constify a char*.
(ffecom_possible_partial_overlap_): Mark parameter `expr2' with
ATTRIBUTE_UNUSED.
(ffecom_init_0): Use a fully prototyped cast in call to bsearch.
(lang_print_error_function): ANSI-fy.
* com.h (ffecom_file): Constify a char*.
* fini.c (main): Call return, not exit.
* g77spec.c (lang_specific_driver): Use non-const *in_argv in
assignment.
* intrin.c (ffeintrin_cmp_name_): Don't needlessly cast away
const-ness.
From-SVN: r30693
Diffstat (limited to 'gcc/f/fini.c')
-rw-r--r-- | gcc/f/fini.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/f/fini.c b/gcc/f/fini.c index d09161f..e5eb539 100644 --- a/gcc/f/fini.c +++ b/gcc/f/fini.c @@ -267,7 +267,7 @@ main (int argc, char **argv) if (argc != 4) { fprintf (stderr, "Command form: fini input output-code output-include\n"); - exit (1); + return (1); } input_name = argv[1]; @@ -278,21 +278,21 @@ main (int argc, char **argv) if (in == NULL) { fprintf (stderr, "Cannot open \"%s\"\n", input_name); - exit (1); + return (1); } out = fopen (output_name, "w"); if (out == NULL) { fclose (in); fprintf (stderr, "Cannot open \"%s\"\n", output_name); - exit (1); + return (1); } incl = fopen (include_name, "w"); if (incl == NULL) { fclose (in); fprintf (stderr, "Cannot open \"%s\"\n", include_name); - exit (1); + return (1); } /* Get past the initial block-style comment (man, this parsing code is just @@ -316,7 +316,7 @@ main (int argc, char **argv) else { assert ("EOF too soon!" == NULL); - exit (1); + return (1); } } @@ -441,7 +441,7 @@ main (int argc, char **argv) #endif if (do_exit) - exit (1); + return (1); /* First output the #include file. */ @@ -624,7 +624,7 @@ typedef enum %s_ %s;\n\ fclose (incl); if (in != stdin) fclose (in); - exit (0); + return (0); } void |