Hi all,

Am 2021-01-26 11:00, schrieb Miroslav Lichvar:
In port_open(), don't assume that UDS ports always have to have a zero
number. Check the transport directly to make make the code cleaner.

What about creating a helper? Something like port_is_uds(struct *port)?
That way the actual checking could be changed in the future without
touching all these places.

-michael


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to