msg: Added const flag in msg_type

Signed-off-by: Anders Selhammer <anders.selhammer@est.tech>
master
Anders Selhammer 2018-11-09 07:42:58 +00:00 committed by Richard Cochran
parent a5da8c4b71
commit 1a4f6a26ce
1 changed files with 1 additions and 1 deletions

2
msg.h
View File

@ -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;
}