aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorJoern Rennecke <amylaar@spamcop.net>2010-01-20 10:35:38 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2010-01-20 10:35:38 +0000
commit21a942d22b1f9e89ccedd0c8711b88dae4b4fa00 (patch)
tree7cde88b3ca20320df052386a24b36a75a1ec46f3 /gcc/java
parent5f8f3f94eed3a2a309067e93625adec6b96b70e4 (diff)
downloadgcc-21a942d22b1f9e89ccedd0c8711b88dae4b4fa00.zip
gcc-21a942d22b1f9e89ccedd0c8711b88dae4b4fa00.tar.gz
gcc-21a942d22b1f9e89ccedd0c8711b88dae4b4fa00.tar.bz2
* jvspec.c (lang_specific_driver): Constify two variables named "p".
From-SVN: r156068
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog2
-rw-r--r--gcc/java/jvspec.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index f96be09..3fefe43 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -6,6 +6,8 @@
(load_class): Constify variable "separator".
Use get_identifier_with_length.
+ * jvspec.c (lang_specific_driver): Constify two variables named "p".
+
2010-01-09 Jakub Jelinek <jakub@redhat.com>
* jcf-dump.c (version): Update copyright notice dates.
diff --git a/gcc/java/jvspec.c b/gcc/java/jvspec.c
index 0f58d47..a021aa4 100644
--- a/gcc/java/jvspec.c
+++ b/gcc/java/jvspec.c
@@ -542,14 +542,14 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
if (! strncmp (argv[i], "-fCLASSPATH=", 12)
|| ! strncmp (argv[i], "-fclasspath=", 12))
{
- char *p = strchr (argv[i], '=');
+ const char *p = strchr (argv[i], '=');
jcf_path_classpath_arg (p + 1);
--j;
continue;
}
if (! strncmp (argv[i], "-fbootclasspath=", 16))
{
- char *p = strchr (argv[i], '=');
+ const char *p = strchr (argv[i], '=');
jcf_path_bootclasspath_arg (p + 1);
--j;
continue;