Project

General

Profile

Revision 942309da src/libs/plugins/backends/aqpaypal/provider_accspec.c

View differences:

src/libs/plugins/backends/aqpaypal/provider_accspec.c
27 27
    /* AB_Transaction_CommandGetEStatements,            */
28 28
    AB_Transaction_CommandUnknown};
29 29

  
30
  for (i=0; (i<100) && (jobList[i]!=AB_Transaction_CommandUnknown); i++) {
30
  i=0;
31
  while(jobList[i]!=AB_Transaction_CommandUnknown) {
31 32
    AB_TRANSACTION_LIMITS *limits=NULL;
32 33

  
33 34
    DBG_INFO(AQPAYPAL_LOGDOMAIN, "Handling job \"%s\"", AB_Transaction_Command_toString(jobList[i]));
......
38 39

  
39 40
    DBG_INFO(AQPAYPAL_LOGDOMAIN, "- adding limits");
40 41
    AB_TransactionLimits_List_Add(limits, tll);
41
  } /* for i */
42
    i++;
43
  } /* while */
42 44

  
43 45
  return 0;
44 46
}

Also available in: Unified diff