master/pdo_mapping.c
changeset 839 e0757d452fc9
parent 838 3cb5769059f4
child 842 40e27e5a8dce
--- a/master/pdo_mapping.c	Thu Feb 28 11:23:34 2008 +0000
+++ b/master/pdo_mapping.c	Thu Feb 28 13:41:02 2008 +0000
@@ -318,14 +318,14 @@
 
 /*****************************************************************************/
 
-/** Finds a Pdo with the given index.
- */
-const ec_pdo_t *ec_pdo_mapping_find_pdo(
+/** Finds a Pdo with the given index and returns a const pointer.
+ */
+const ec_pdo_t *ec_pdo_mapping_find_pdo_const(
         const ec_pdo_mapping_t *pm, /**< Pdo mapping. */
         uint16_t index /**< Pdo index. */
         )
 {
-    ec_pdo_t *pdo;
+    const ec_pdo_t *pdo;
 
     list_for_each_entry(pdo, &pm->pdos, list) {
         if (pdo->index != index)