Please C++ compilers when calling strrchr.

* libltdl/ltdl.c (has_library_ext): Match the return type of
strrchr with the first argument to please C++ compilers.
Report by Peter O'Gorman.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
This commit is contained in:
Peter Rosin 2009-11-30 14:20:36 -05:00
parent b15f6f9ded
commit 2c9c38d8a1
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2009-11-30 Peter Rosin <peda@lysator.liu.se>
Please C++ compilers when calling strrchr.
* libltdl/ltdl.c (has_library_ext): Match the return type of
strrchr with the first argument to please C++ compilers.
Report by Peter O'Gorman.
2009-11-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Fix bindir and dlopen tests for C++ compilers (CC=g++).

View File

@ -1507,7 +1507,7 @@ file_not_found (void)
static int
has_library_ext (const char *filename)
{
char * ext = 0;
const char * ext = 0;
assert (filename);