Commit 7863554e authored by Olivier Bertrand's avatar Olivier Bertrand

Fix clang compile error in tabjson and typo in tabbson.cpp

parent af7a0895
...@@ -1492,7 +1492,7 @@ int TDBBSN::EstimatedLength(void) ...@@ -1492,7 +1492,7 @@ int TDBBSN::EstimatedLength(void)
} // end of Estimated Length } // end of Estimated Length
/***********************************************************************/ /***********************************************************************/
/* OpenDB: Data Base open routine for JSN access method. */ /* OpenDB: Data Base open routine for BSN access method. */
/***********************************************************************/ /***********************************************************************/
bool TDBBSN::OpenDB(PGLOBAL g) bool TDBBSN::OpenDB(PGLOBAL g)
{ {
......
...@@ -1173,7 +1173,7 @@ int TDBJSN::ReadDB(PGLOBAL g) { ...@@ -1173,7 +1173,7 @@ int TDBJSN::ReadDB(PGLOBAL g) {
/***********************************************************************/ /***********************************************************************/
/* Make the top tree from the object path. */ /* Make the top tree from the object path. */
/***********************************************************************/ /***********************************************************************/
int TDBJSN::MakeTopTree(PGLOBAL g, PJSON jsp) bool TDBJSN::MakeTopTree(PGLOBAL g, PJSON jsp)
{ {
if (Objname) { if (Objname) {
if (!Val) { if (!Val) {
...@@ -1210,7 +1210,7 @@ int TDBJSN::MakeTopTree(PGLOBAL g, PJSON jsp) ...@@ -1210,7 +1210,7 @@ int TDBJSN::MakeTopTree(PGLOBAL g, PJSON jsp)
// Old style // Old style
if (objpath[strlen(objpath) - 1] != ']') { if (objpath[strlen(objpath) - 1] != ']') {
sprintf(g->Message, "Invalid Table path %s", Objname); sprintf(g->Message, "Invalid Table path %s", Objname);
return NULL; return true;
} else if (!bp) } else if (!bp)
objpath++; objpath++;
...@@ -1239,7 +1239,7 @@ int TDBJSN::MakeTopTree(PGLOBAL g, PJSON jsp) ...@@ -1239,7 +1239,7 @@ int TDBJSN::MakeTopTree(PGLOBAL g, PJSON jsp)
} else } else
Top = jsp; Top = jsp;
return RC_OK; return false;
} // end of MakeTopTree } // end of MakeTopTree
/***********************************************************************/ /***********************************************************************/
......
...@@ -170,7 +170,7 @@ class DllExport TDBJSN : public TDBDOS { ...@@ -170,7 +170,7 @@ class DllExport TDBJSN : public TDBDOS {
protected: protected:
PJSON FindRow(PGLOBAL g); PJSON FindRow(PGLOBAL g);
int MakeTopTree(PGLOBAL g, PJSON jsp); bool MakeTopTree(PGLOBAL g, PJSON jsp);
// Members // Members
PGLOBAL G; // Support of parse memory PGLOBAL G; // Support of parse memory
......
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