Plugfest: domain_process mit const-Zeiger.
--- a/include/ecrt.h Mon Apr 03 19:19:05 2006 +0000
+++ b/include/ecrt.h Wed Apr 05 07:47:26 2006 +0000
@@ -79,7 +79,7 @@
unsigned int field_index,
unsigned int field_count);
int ecrt_domain_register_field_list(ec_domain_t *domain,
- ec_field_init_t *fields);
+ const ec_field_init_t *fields);
void ecrt_domain_queue(ec_domain_t *domain);
void ecrt_domain_process(ec_domain_t *domain);
--- a/master/domain.c Mon Apr 03 19:19:05 2006 +0000
+++ b/master/domain.c Wed Apr 05 07:47:26 2006 +0000
@@ -360,11 +360,11 @@
int ecrt_domain_register_field_list(ec_domain_t *domain,
/**< Domäne */
- ec_field_init_t *fields
+ const ec_field_init_t *fields
/**< Array mit Datenfeldern */
)
{
- ec_field_init_t *field;
+ const ec_field_init_t *field;
for (field = fields; field->slave_address; field++)
if (!ecrt_domain_register_field(domain, field->slave_address,