Issue #206 (bdwgc).
Add const to the variable receiving strchr() result for C++ compatibility.
* cord/cordxtra.c (CORD_batched_chr_proc): Change type of occ local
variable from char* to const char*; remove register keyword for occ.
int CORD_batched_chr_proc(const char *s, void * client_data)
{
register chr_data * d = (chr_data *)client_data;
- register char * occ = strchr(s, d -> target);
+ const char * occ = strchr(s, d -> target);
- if (occ == 0) {
+ if (NULL == occ) {
d -> pos += strlen(s);
return(0);
} else {