From 3f35218f86f27d20efb57c5d8ca513d3242a791d Mon Sep 17 00:00:00 2001 From: Dave Page Date: Thu, 31 Aug 2006 08:24:18 +0000 Subject: [PATCH] Explicitly cast the strchr() return value to stop VC++ 2k5 bleating about losing the const qualifier. --- pgxalib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgxalib.cpp b/pgxalib.cpp index a1609da..88f168b 100755 --- a/pgxalib.cpp +++ b/pgxalib.cpp @@ -388,7 +388,7 @@ static int TextToXid(XID &xid, const char *rtext) char *sptr; slen = strlen(rtext); - sptr = strchr(rtext, '-'); + sptr = (char *)strchr(rtext, '-'); if (sptr) { glen = (int) (sptr - rtext); -- 2.39.5