]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Please C++ compilers when calling strrchr.
authorPeter Rosin <peda@lysator.liu.se>
Mon, 30 Nov 2009 19:20:36 +0000 (14:20 -0500)
committerPeter Rosin <peda@lysator.liu.se>
Mon, 30 Nov 2009 19:20:36 +0000 (14:20 -0500)
* 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>
ChangeLog
libltdl/ltdl.c

index 3ba536cbb3e2bb4609b1f4925bf52979b5281b1a..7961cacac808f79d5af7a7298747984cb717d51f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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++).
index 24ee13f1d6d8c4f1039a84ea049716a3bce41416..e2accff444567251e2ad98c337c00f5cc7322df0 100644 (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);