diff -r 66c60b99c2e8 -r ff06c58e269c master/cdev.c --- a/master/cdev.c Wed Jul 02 12:19:25 2008 +0000 +++ b/master/cdev.c Wed Jul 02 14:06:10 2008 +0000 @@ -1000,7 +1000,7 @@ data.position = sc->position; data.vendor_id = sc->vendor_id; data.product_code = sc->product_code; - for (i = 0; i < EC_MAX_SYNCS; i++) { + for (i = 0; i < EC_MAX_SYNC_MANAGERS; i++) { data.syncs[i].dir = sc->sync_configs[i].dir; data.syncs[i].pdo_count = ec_pdo_list_count(&sc->sync_configs[i].pdos); @@ -1035,7 +1035,7 @@ return -EFAULT; } - if (data.sync_index >= EC_MAX_SYNCS) { + if (data.sync_index >= EC_MAX_SYNC_MANAGERS) { EC_ERR("Invalid sync manager index %u!\n", data.sync_index); return -EINVAL; @@ -1095,7 +1095,7 @@ return -EFAULT; } - if (data.sync_index >= EC_MAX_SYNCS) { + if (data.sync_index >= EC_MAX_SYNC_MANAGERS) { EC_ERR("Invalid sync manager index %u!\n", data.sync_index); return -EINVAL;