diff options
author | unknown <tomas@mc05.(none)> | 2004-05-05 12:42:00 +0200 |
---|---|---|
committer | unknown <tomas@mc05.(none)> | 2004-05-05 12:42:00 +0200 |
commit | 4b6eb9b06ae166cabd028883114a7efa9d8494b2 (patch) | |
tree | 4bb16bde446d23c31c24519ea5d8e43de3b6c9f5 /ndb | |
parent | 9f76f43cb9aceb160fa6faea0fd8c2ea91ce761e (diff) | |
download | mariadb-git-4b6eb9b06ae166cabd028883114a7efa9d8494b2.tar.gz |
Fix ndberror after jonas comments
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/include/ndbapi/NdbError.hpp | 2 | ||||
-rw-r--r-- | ndb/include/ndbapi/ndberror.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ndb/include/ndbapi/NdbError.hpp b/ndb/include/ndbapi/NdbError.hpp index 2bcc3cee983..8cde2a8cf38 100644 --- a/ndb/include/ndbapi/NdbError.hpp +++ b/ndb/include/ndbapi/NdbError.hpp @@ -206,7 +206,7 @@ struct NdbError { message = 0; details = 0; } - NdbError(ndberror_struct ndberror){ + NdbError(const ndberror_struct & ndberror){ status = (NdbError::Status) ndberror.status; classification = (NdbError::Classification) ndberror.classification; code = ndberror.code; diff --git a/ndb/include/ndbapi/ndberror.h b/ndb/include/ndbapi/ndberror.h index 2a18e1eb913..3d950ddaa8d 100644 --- a/ndb/include/ndbapi/ndberror.h +++ b/ndb/include/ndbapi/ndberror.h @@ -88,8 +88,8 @@ typedef struct { typedef ndberror_status_enum ndberror_status; typedef ndberror_classification_enum ndberror_classification; -const char *ndberror_status_message(const ndberror_status); -const char *ndberror_classification_message(const ndberror_classification); +const char *ndberror_status_message(ndberror_status); +const char *ndberror_classification_message(ndberror_classification); void ndberror_update(ndberror_struct *); int ndb_error_string(int err_no, char *str, size_t size); |