Commit 0f495652 authored by unknown's avatar unknown

Fix ndberror after jonas comments

parent eeb21b56
...@@ -206,7 +206,7 @@ struct NdbError { ...@@ -206,7 +206,7 @@ struct NdbError {
message = 0; message = 0;
details = 0; details = 0;
} }
NdbError(ndberror_struct ndberror){ NdbError(const ndberror_struct & ndberror){
status = (NdbError::Status) ndberror.status; status = (NdbError::Status) ndberror.status;
classification = (NdbError::Classification) ndberror.classification; classification = (NdbError::Classification) ndberror.classification;
code = ndberror.code; code = ndberror.code;
......
...@@ -88,8 +88,8 @@ typedef struct { ...@@ -88,8 +88,8 @@ typedef struct {
typedef ndberror_status_enum ndberror_status; typedef ndberror_status_enum ndberror_status;
typedef ndberror_classification_enum ndberror_classification; typedef ndberror_classification_enum ndberror_classification;
const char *ndberror_status_message(const ndberror_status); const char *ndberror_status_message(ndberror_status);
const char *ndberror_classification_message(const ndberror_classification); const char *ndberror_classification_message(ndberror_classification);
void ndberror_update(ndberror_struct *); void ndberror_update(ndberror_struct *);
int ndb_error_string(int err_no, char *str, size_t size); int ndb_error_string(int err_no, char *str, size_t size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment