Project

General

Profile

Revision 942309da

View differences:

src/libs/aqbanking/banking_transaction.c
410 410

  
411 411

  
412 412
static int _checkStringForSepaCharset(const char *s, int restricted) {
413
  char *ascii = "':?,-(+.)/ &*$%";
414
#define DTAUSOFFSET 11
413
  char ascii_chars[]="'&*$%:?,-(+.)/ "; /* last is a blank! */
414
  const char *ascii;
415

  
416
#define RESTRICTED_CHARS_OFFSET 3
415 417

  
416 418
  assert(s);
419

  
420
  ascii=ascii_chars;
417 421
  if (restricted)
418
    ascii[DTAUSOFFSET] = '\0';
422
    ascii+=RESTRICTED_CHARS_OFFSET;
419 423

  
420 424
  while(*s) {
421 425
    unsigned char c=*s++;
src/libs/plugins/backends/aqhbci/banking/provider_accspec.c
31 31
    AB_Transaction_CommandGetEStatements,
32 32
    AB_Transaction_CommandUnknown};
33 33

  
34
  for (i=0; (i<100) && (jobList[i]!=AB_Transaction_CommandUnknown); i++) {
34
  i=0;
35
  while(jobList[i]!=AB_Transaction_CommandUnknown) {
35 36
    AH_JOB *j=NULL;
36 37
    AB_TRANSACTION_LIMITS *limits=NULL;
37 38

  
......
59 60
      AB_TransactionLimits_List_Add(limits, tll);
60 61
      AH_Job_free(j);
61 62
    }
62
  } /* for i */
63
    i++;
64
  } /* while i */
63 65

  
64 66
  return 0;
65 67
}
src/libs/plugins/backends/aqofxconnect/provider_accspec.c
28 28
    /* AB_Transaction_CommandGetEStatements,            */
29 29
    AB_Transaction_CommandUnknown};
30 30

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

  
34 35
    DBG_INFO(AQOFXCONNECT_LOGDOMAIN, "Handling job \"%s\"", AB_Transaction_Command_toString(jobList[i]));
......
39 40

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

  
44 46
  return 0;
45 47
}
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