summaryrefslogtreecommitdiffstats
path: root/gcc/cp/repo.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-02 19:03:59 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-02 19:03:59 +0000
commit78dbff7cf909ce370d16c2b4c185ec01e419fe4c (patch)
tree79fd392a778483e0dba0d31c32d9d005dc4fdeeb /gcc/cp/repo.c
parenta3f30566986f897fcef17b98f722a0227de49492 (diff)
downloadppe42-gcc-78dbff7cf909ce370d16c2b4c185ec01e419fe4c.tar.gz
ppe42-gcc-78dbff7cf909ce370d16c2b4c185ec01e419fe4c.zip
* collect2.c (main, write_c_file_stat), gcc.c (translate_options,
process_command, main), gcov.c (open_files, output_data), tlink.c (frob_extension, scan_linker_output), toplev.c (file_name_nondirectory): Use strchr () and strrchr () instead of index () and rindex (). cp: * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c (build_overload_value), repo.c (open_repo_file), xref.c (open_xref_file): Use strchr () and strrchr () instead of index () and rindex (). f: * com.c (open_include_file, ffecom_open_include_): Use strchr () and strrchr () instead of index () and rindex (). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37206 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/repo.c')
-rw-r--r--gcc/cp/repo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c
index 32812ec7584..8feab839038 100644
--- a/gcc/cp/repo.c
+++ b/gcc/cp/repo.c
@@ -301,7 +301,7 @@ open_repo_file (filename)
return;
p = file_name_nondirectory (s);
- p = rindex (p, '.');
+ p = strrchr (p, '.');
if (! p)
p = s + strlen (s);
OpenPOWER on IntegriCloud