Plugfest: domain_process mit const-Zeiger.
authorFlorian Pose <fp@igh-essen.com>
Wed, 05 Apr 2006 07:47:26 +0000
changeset 150 36530399236b
parent 149 0ed43f09130f
child 151 1961b674466c
Plugfest: domain_process mit const-Zeiger.
include/ecrt.h
master/domain.c
--- 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,