master/pdo_mapping.c
changeset 838 3cb5769059f4
parent 826 70aeae0de217
child 839 e0757d452fc9
--- a/master/pdo_mapping.c	Thu Feb 28 11:07:40 2008 +0000
+++ b/master/pdo_mapping.c	Thu Feb 28 11:23:34 2008 +0000
@@ -119,7 +119,7 @@
  *
  * \return 0 on success, else < 0
  */
-int ec_pdo_mapping_add_pdo(
+int ec_pdo_mapping_add_pdo_copy(
         ec_pdo_mapping_t *pm, /**< Pdo mapping. */
         const ec_pdo_t *pdo /**< Pdo to add. */
         )
@@ -269,7 +269,7 @@
 
     // Pdo already mapped?
     list_for_each_entry(other_pdo, &other->pdos, list) {
-        if (ec_pdo_mapping_add_pdo(pm, other_pdo))
+        if (ec_pdo_mapping_add_pdo_copy(pm, other_pdo))
             return -1;
     }