int unit;
int card;
+
getCardsR = 0;
card = 0;
+ /*= printf("units: %d\n", r); */
for (unit = 0; unit < r; unit++) {
char ct[PARAM_MAX_VALUE_LEN];
- int r;
+ int r2;
- if (Param_getString(param, units[unit], "cardtype", &r, ct) || r == 0) {
+ /*printf("before getString: %s, unit %d\n", units[unit], unit);*/
+ if (Param_getString(param, units[unit], "cardtype", &r2, ct) || r2 == 0) {
syslog(LOG_ERR, "Parameter %s(cardtype) not found", units[unit]);
getCardsR = -1;
} else {
+ /*printf("before strcpy: %s: %s, unit %d\n", units[unit], ct, unit);*/
if (strcmp(cardtype, ct) == 0) {
strcpy(cards[card++], units[unit]);
+ /*printf("strcpy: %s, unit %d\n", units[unit], unit);*/
}
}
}