From 2c9c38d8a12eb0a2ce7fe9c3862523026c3d5622 Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Mon, 30 Nov 2009 14:20:36 -0500 Subject: [PATCH] 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 --- ChangeLog | 7 +++++++ libltdl/ltdl.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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); -- 2.47.3