1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Constify the sp_get_port_transport() parameter.

This commit is contained in:
Uwe Hermann 2015-04-19 18:28:10 +02:00
parent 3dd4a2ae39
commit ad036cc8ef
2 changed files with 2 additions and 2 deletions

View File

@ -426,7 +426,7 @@ char *sp_get_port_description(struct sp_port *port);
* *
* @since 0.1.1 * @since 0.1.1
*/ */
enum sp_transport sp_get_port_transport(struct sp_port *port); enum sp_transport sp_get_port_transport(const struct sp_port *port);
/** /**
* Get the USB bus number and address on bus of a USB serial adapter port. * Get the USB bus number and address on bus of a USB serial adapter port.

View File

@ -136,7 +136,7 @@ SP_API char *sp_get_port_description(struct sp_port *port)
RETURN_STRING(port->description); RETURN_STRING(port->description);
} }
SP_API enum sp_transport sp_get_port_transport(struct sp_port *port) SP_API enum sp_transport sp_get_port_transport(const struct sp_port *port)
{ {
TRACE("%p", port); TRACE("%p", port);