Fix 'invalid conversion from const char* to char*' in CORD_batched_chr_proc
authorJay Krell <jaykrell@microsoft.com>
Mon, 19 Feb 2018 11:43:37 +0000 (03:43 -0800)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 20 Feb 2018 20:23:07 +0000 (23:23 +0300)
commit1247f597253ccec8307729ec02c0630af7732aba
tree6a736359c7138578444fdf46825b74fc96120d8e
parentcbe7f47df136246842c7e8e09d214d56507af878
Fix 'invalid conversion from const char* to char*' in CORD_batched_chr_proc

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.
cord/cordxtra.c