[Unbound-users] passing string literals in C++
karel.slany at nic.cz
Mon Jun 17 15:40:41 UTC 2013
I've recently bumped into lots of annoying messages about deprecated
conversion from string constant to 'char*' when I was using libunbound
Apparently, functions in <unbound.h> can safely handle const char*
parameters, but they are declared and defined to take char*. This
represents no problem in C. But in C++ string literals are considered
If there is no reason for declaring those functions with char* arguments
I would suggest to change the function prototypes to take const char*
arguments. The suggested patch is in the attachment.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8914 bytes
Desc: not available
More information about the Unbound-users