On Mon, 30 Nov 2009, Ralf Wildenhues wrote:
I don't see a warning to that end, my system declares strrchr as
#include <string.h>
char *strrchr(const char *s, int c);
Solaris 10 manual pages says that this prototype is used for C:
char *strrchr(const char *s, int c);
and this one is used for ISO C++:
const char *strrchr(const char *s, int c);
Since the C++ one is more restrictive (and is also more correct), it
may be useful to try to correct the code rather than just add a cast.
Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/