From: Peter Rosin Date: Mon, 30 Nov 2009 19:20:36 +0000 (-0500) Subject: Please C++ compilers when calling strrchr. X-Git-Tag: v2.2.7b~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c9c38d8a12eb0a2ce7fe9c3862523026c3d5622;p=thirdparty%2Flibtool.git 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 --- diff --git a/ChangeLog b/ChangeLog index 3ba536cbb..7961cacac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-11-30 Peter Rosin + + 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 Fix bindir and dlopen tests for C++ compilers (CC=g++). diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 24ee13f1d..e2accff44 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -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);