From dafbd854c75ac1bcbabb45a4d3beb5d959cb2ff5 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 9 Aug 1999 23:45:52 +0000 Subject: [PATCH] com.c (lang_print_error_function): Constify a char*. * com.c (lang_print_error_function): Constify a char*. (init_parse): Remove redundant prototype for `print_error_function'. (lang_identify): Constify a char*. From-SVN: r28634 --- gcc/f/ChangeLog | 6 ++++++ gcc/f/com.c | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 7227d13a9b2..093668bb935 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,9 @@ +Mon Aug 9 19:44:08 1999 Kaveh R. Ghazi + + * com.c (lang_print_error_function): Constify a char*. + (init_parse): Remove redundant prototype for `print_error_function'. + (lang_identify): Constify a char*. + Thu Aug 5 02:40:42 1999 Jeffrey A Law (law@cygnus.com) * g77spec.c: Update URLS and mail addresses. diff --git a/gcc/f/com.c b/gcc/f/com.c index 849da85b781..47ee8a11084 100644 --- a/gcc/f/com.c +++ b/gcc/f/com.c @@ -14438,7 +14438,7 @@ lang_printable_name (tree decl, int v) #if BUILT_FOR_270 void lang_print_error_function (file) - char *file; + const char *file; { static ffeglobal last_g = NULL; static ffesymbol last_s = NULL; @@ -14928,10 +14928,6 @@ char * init_parse (filename) char *filename; { -#if BUILT_FOR_270 - extern void (*print_error_function) (char *); -#endif - /* Open input file. */ if (filename == 0 || !strcmp (filename, "-")) { @@ -15023,7 +15019,7 @@ lang_finish () malloc_pool_display (malloc_pool_image ()); } -char * +const char * lang_identify () { return "f77"; -- 2.30.2