freebsd-skq/usr.bin/dtc
rakuco 52580478ad fdt: Expect strchr() to return a const char*
In C, strchr(3) returns a char*, whereas C++ defines two overloads:
* const char *strchr(const char*, int)
* char *strchr(char*, int)

Building fdt.cc (with the WITHOUT_GPL_DTC knob set) with libc++ 3.9.0 (imported
in r309124) was failing because libc++ r260377 added the first overload to
string.h, leading to failures such as:

    fdt.cc:1638:8: error: cannot initialize a variable of type 'char *' with an
    rvalue of type 'const char *'

Just define val as a const char* to fix it.

Upstreamed in https://github.com/davidchisnall/dtc/pull/14

Reviewed by:	emaste
Approved by:	emaste
2016-11-26 12:36:11 +00:00
..
checking.cc Improvements to BSD-licensed DTC. 2016-10-07 12:57:35 +00:00
checking.hh Improvements to BSD-licensed DTC. 2016-10-07 12:57:35 +00:00
dtb.cc Improvements to BSD-licensed DTC. 2016-10-07 12:57:35 +00:00
dtb.hh Improvements to BSD-licensed DTC. 2016-10-07 12:57:35 +00:00
dtc.1 Improvements to BSD-licensed DTC. 2016-10-07 12:57:35 +00:00
dtc.cc Improvements to BSD-licensed DTC. 2016-10-07 12:57:35 +00:00
fdt.cc fdt: Expect strchr() to return a const char* 2016-11-26 12:36:11 +00:00
fdt.hh Improvements to BSD-licensed DTC. 2016-10-07 12:57:35 +00:00
HACKING Update some obsolete information in the HACKING document. 2015-10-26 11:02:57 +00:00
input_buffer.cc Improvements to BSD-licensed DTC. 2016-10-07 12:57:35 +00:00
input_buffer.hh Improvements to BSD-licensed DTC. 2016-10-07 12:57:35 +00:00
Makefile Improvements to BSD-licensed DTC. 2015-12-29 16:29:42 +00:00
Makefile.depend META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
string.cc Improvements to BSD-licensed DTC. 2016-10-07 12:57:35 +00:00
string.hh Lots of improvements to the BSD-licensed dtc 2015-10-25 14:52:16 +00:00
util.hh Improvements to BSD-licensed DTC. 2016-10-07 12:57:35 +00:00