summaryrefslogtreecommitdiff
path: root/ndb/src/mgmclient/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-10-20 13:42:41 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-10-20 13:42:41 +0000
commite4a86f3237783b356eb448952ae11c292c12006c (patch)
treebd85bda937436c38cfeb5846ed1cad5d2371195d /ndb/src/mgmclient/CommandInterpreter.cpp
parent2da1cbd97dd566d629115f02321ab36aac069ce4 (diff)
downloadmariadb-git-e4a86f3237783b356eb448952ae11c292c12006c.tar.gz
compile warning fixes
mysql-test/ndb/ndbcluster.sh: corrected shell test syntax
Diffstat (limited to 'ndb/src/mgmclient/CommandInterpreter.cpp')
-rw-r--r--ndb/src/mgmclient/CommandInterpreter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ndb/src/mgmclient/CommandInterpreter.cpp b/ndb/src/mgmclient/CommandInterpreter.cpp
index b03a4f8a419..1258f86ccc4 100644
--- a/ndb/src/mgmclient/CommandInterpreter.cpp
+++ b/ndb/src/mgmclient/CommandInterpreter.cpp
@@ -828,6 +828,8 @@ CommandInterpreter::executeShow(char* parameters)
case NDB_MGM_NODE_TYPE_UNKNOWN:
ndbout << "Error: Unknown Node Type" << endl;
return;
+ case NDB_MGM_NODE_TYPE_REP:
+ abort();
}
}
@@ -1638,7 +1640,7 @@ CommandInterpreter::executeStartBackup(char* /*parameters*/)
if(tmp)
{
ndbout << tmp;
- int id;
+ unsigned int id;
if(sscanf(tmp, "%*[^:]: Backup %d ", &id) == 1 && id == backupId){
count++;
}