From 1a4f6a26ce174db070a37d555e21d4efef7ab7ce Mon Sep 17 00:00:00 2001 From: Anders Selhammer Date: Fri, 9 Nov 2018 07:42:58 +0000 Subject: [PATCH] msg: Added const flag in msg_type Signed-off-by: Anders Selhammer --- msg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg.h b/msg.h index b5a57fe..02e45fd 100644 --- a/msg.h +++ b/msg.h @@ -299,7 +299,7 @@ static inline UInteger8 msg_transport_specific(struct ptp_message *m) * @param m Message to test. * @return The value of the messageType field. */ -static inline int msg_type(struct ptp_message *m) +static inline int msg_type(const struct ptp_message *m) { return m->header.tsmt & 0x0f; }