summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-29 13:44:41 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-29 13:44:41 +0000
commit3f0ed59f4f2755402d79c31e109c410b63db790e (patch)
treef3b13e0fa3e01050e86808f3748f852412c7e957 /gcc
parent746409a48f65b9f534f0ec9120ad974826064f7c (diff)
downloadgcc-3f0ed59f4f2755402d79c31e109c410b63db790e.tar.gz
* lang.c (chill_print_error_function): Constify a char*.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28967 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ch/ChangeLog4
-rw-r--r--gcc/ch/lang.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ch/ChangeLog b/gcc/ch/ChangeLog
index 0b6da80ad16..32b9e68f6c8 100644
--- a/gcc/ch/ChangeLog
+++ b/gcc/ch/ChangeLog
@@ -1,5 +1,9 @@
1999-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ * lang.c (chill_print_error_function): Constify a char*.
+
+1999-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
* Makefile.in (ch-version.c): Constify a char*.
* actions.c (id_cmp, warn_unhandled, adjust_return_value,
diff --git a/gcc/ch/lang.c b/gcc/ch/lang.c
index 7be6d5c75f0..42f90542ffd 100644
--- a/gcc/ch/lang.c
+++ b/gcc/ch/lang.c
@@ -265,8 +265,8 @@ chill_print_error_function (file)
}
else
{
- char *kind = "function";
- char *name = (*decl_printable_name) (current_function_decl, 2);
+ const char *kind = "function";
+ const char *name = (*decl_printable_name) (current_function_decl, 2);
fprintf (stderr, "In %s `%s':\n", kind, name);
}
}