Make the error message a const char* const

This prevents linker errors if the source files are used directly.
This commit is contained in:
Markus Mäkelä
2018-11-22 14:42:26 +02:00
parent 9cba1bdc37
commit c0ebf663e3
2 changed files with 3 additions and 1 deletions

View File

@ -169,6 +169,8 @@ template <> void Closer<int>::close(int fd)
namespace CDC namespace CDC
{ {
const char* const TIMEOUT = "Request timed out";
/** /**
* Public functions * Public functions
*/ */

View File

@ -32,7 +32,7 @@ namespace CDC
// The error strings returned by the getError library. These can be used to // The error strings returned by the getError library. These can be used to
// check for the most common errors (which right now is only the timeout). // check for the most common errors (which right now is only the timeout).
static const char* TIMEOUT = "Request timed out"; extern const char* const TIMEOUT;
// The typedef for the Row type // The typedef for the Row type
class Row; class Row;