Commit b0b08e6c authored by unknown's avatar unknown
Browse files

Avoid compilation error: On IRIX, identifiers with loop scope still need to be unique

at function level.


ndb/src/ndbapi/NdbEventOperationImpl.cpp:
  Avoid compilation error: On IRIX, variables declared within a loop control statement
  seem to have function scope. Either use different identifiers, or declare them
  at function level.
parent 18bc8734
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -536,9 +536,10 @@ NdbEventOperationImpl::getEventType()
void
NdbEventOperationImpl::print()
{
  int i;
  ndbout << "EventId " << m_eventId << "\n";

  for (int i = 0; i < 2; i++) {
  for (i = 0; i < 2; i++) {
    NdbRecAttr *p = theFirstPkAttrs[i];
    ndbout << " %u " << i;
    while (p) {
@@ -547,7 +548,7 @@ NdbEventOperationImpl::print()
    }
    ndbout << "\n";
  }
  for (int i = 0; i < 2; i++) {
  for (i = 0; i < 2; i++) {
    NdbRecAttr *p = theFirstDataAttrs[i];
    ndbout << " %u " << i;
    while (p) {