msg: Added const flag in msg_type
Signed-off-by: Anders Selhammer <anders.selhammer@est.tech>master
parent
a5da8c4b71
commit
1a4f6a26ce
2
msg.h
2
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue