Host: unconstify editline paramters
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 10 Feb 2014 16:10:42 +0000 (16:10 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 10 Feb 2014 16:10:42 +0000 (16:10 +0000)
commit78c135942da5cff2829cbb422549218294b15a5f
treee5ee72da66bdac374ab5c21b7f736c62e14e72fc
parentbcde0c49cb09dcff7c7da5ebca7e03983ffd5399
Host: unconstify editline paramters

Although the interface to el_push should be a constant parameter (as it is on
Darwin), certain Linux distributions currently ship a header which does not
provide proper const correctness.  This causes compilation failures on Linux.
Strip the constness on the parameter, which whilst incorrect, is mostly
harmless.  The parameter will not be changed by the interface and so it is
acceptable to do this.  When distributions have updated to a more correct
declaration, it would be nice to revert this change.

Addresses PR18784.

llvm-svn: 201092
lldb/source/Host/common/Editline.cpp