Make the error message a const char* const
This prevents linker errors if the source files are used directly.
This commit is contained in:
parent
ba5017bdff
commit
1bba689c80
@ -170,6 +170,8 @@ void Closer<int>::close(int fd)
|
||||
namespace CDC
|
||||
{
|
||||
|
||||
const char* const TIMEOUT = "Request timed out";
|
||||
|
||||
/**
|
||||
* Public functions
|
||||
*/
|
||||
|
@ -32,7 +32,7 @@ namespace CDC
|
||||
|
||||
// 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).
|
||||
const char* TIMEOUT = "Request timed out";
|
||||
extern const char* const TIMEOUT;
|
||||
|
||||
// The typedef for the Row type
|
||||
class Row;
|
||||
|
Loading…
x
Reference in New Issue
Block a user