diff options
author | unknown <mysqldev@o2k.irixworld.net> | 2004-07-09 12:48:32 +0200 |
---|---|---|
committer | unknown <mysqldev@o2k.irixworld.net> | 2004-07-09 12:48:32 +0200 |
commit | 01aceaaa1575fb3887da7b087dd0b6e550f50440 (patch) | |
tree | d5476b0b93c008afbe122644e788b9bc3957ca9c /ndb/src/ndbapi/NdbEventOperationImpl.cpp | |
parent | 6e18271f1c5979a3c337c23c341e75175b1d8b93 (diff) | |
download | mariadb-git-01aceaaa1575fb3887da7b087dd0b6e550f50440.tar.gz |
Irix64 mipspro ndb compile fixes
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'ndb/src/ndbapi/NdbEventOperationImpl.cpp')
-rw-r--r-- | ndb/src/ndbapi/NdbEventOperationImpl.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ndb/src/ndbapi/NdbEventOperationImpl.cpp b/ndb/src/ndbapi/NdbEventOperationImpl.cpp index b73a58d97c4..af84492564b 100644 --- a/ndb/src/ndbapi/NdbEventOperationImpl.cpp +++ b/ndb/src/ndbapi/NdbEventOperationImpl.cpp @@ -93,11 +93,12 @@ NdbEventOperationImpl::NdbEventOperationImpl(NdbEventOperation &N, NdbEventOperationImpl::~NdbEventOperationImpl() { + int i; if (sdata) NdbMem_Free(sdata); - for (int i=0 ; i<3; i++) { + for (i=0 ; i<3; i++) { if (ptr[i].p) NdbMem_Free(ptr[i].p); } - for (int i=0 ; i<2; i++) { + for (i=0 ; i<2; i++) { NdbRecAttr *p = theFirstRecAttrs[i]; while (p) { NdbRecAttr *p_next = p->next(); @@ -1233,8 +1234,9 @@ NdbGlobalEventBuffer::real_wait(NdbGlobalEventBufferHandle *h, int aMillisecondNumber) { // check if there are anything in any of the buffers + int i; int n = 0; - for (int i = 0; i < h->m_nids; i++) + for (i = 0; i < h->m_nids; i++) n += hasData(h->m_bufferIds[i]); if (n) return n; @@ -1243,7 +1245,9 @@ NdbGlobalEventBuffer::real_wait(NdbGlobalEventBufferHandle *h, return -1; n = 0; - for (int i = 0; i < h->m_nids; i++) + for (i = 0; i < h->m_nids; i++) n += hasData(h->m_bufferIds[i]); return n; } + +template class Vector<NdbGlobalEventBufferHandle*>; |