Made datagram const. stable-1.5
authorFlorian Pose <fp@igh-essen.com>
Fri, 07 Dec 2012 19:51:55 +0100
branchstable-1.5
changeset 2488 c0b4c64fcebd
parent 2487 ccafdf1e261f
child 2489 5cd99a1daa7a
Made datagram const.
master/mailbox.c
master/mailbox.h
--- a/master/mailbox.c	Thu Dec 06 18:43:56 2012 +0100
+++ b/master/mailbox.c	Fri Dec 07 19:51:55 2012 +0100
@@ -163,7 +163,7 @@
  * \return Pointer to the received data, or ERR_PTR() code.
  */
 uint8_t *ec_slave_mbox_fetch(const ec_slave_t *slave, /**< slave */
-                             ec_datagram_t *datagram, /**< datagram */
+                             const ec_datagram_t *datagram, /**< datagram */
                              uint8_t *type, /**< expected mailbox protocol */
                              size_t *size /**< size of the received data */
                              )
--- a/master/mailbox.h	Thu Dec 06 18:43:56 2012 +0100
+++ b/master/mailbox.h	Fri Dec 07 19:51:55 2012 +0100
@@ -52,7 +52,7 @@
 int      ec_slave_mbox_prepare_check(const ec_slave_t *, ec_datagram_t *);
 int      ec_slave_mbox_check(const ec_datagram_t *);
 int      ec_slave_mbox_prepare_fetch(const ec_slave_t *, ec_datagram_t *);
-uint8_t *ec_slave_mbox_fetch(const ec_slave_t *, ec_datagram_t *,
+uint8_t *ec_slave_mbox_fetch(const ec_slave_t *, const ec_datagram_t *,
                              uint8_t *, size_t *);
 
 /*****************************************************************************/