Eliminate 'write to memory that was const-qualified' code analyzer warning
authorIvan Maidanski <ivmai@mail.ru>
Wed, 28 Sep 2016 08:32:55 +0000 (11:32 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 28 Sep 2016 08:32:55 +0000 (11:32 +0300)
commit59d2d8ccdc4659f906287a029bab206f63a17f1f
tree48035c46d4f060bba2401b066e09b4db937c839b
parentc5e49b58dd62e27c1632ae963d0e56e4885e8162
Eliminate 'write to memory that was const-qualified' code analyzer warning

* cord/cordbscs.c (CORD_from_fn): Rename to CORD_from_fn_inner; make it
static; change return type from CORD to CordRep*; define public
CORD_from_fn which simply calls CORD_from_fn_inner (with the type cast
to CORD).
* cord/cordbscs.c (CORD_substr_closure): Call CORD_from_fn_inner
instead of CORD_from_fn (thus remove the cast from const type to
a non-const one).
cord/cordbscs.c