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

Constify the sp_get_port_description() parameter.

This commit is contained in:
Uwe Hermann 2015-04-19 19:00:52 +02:00
parent ad036cc8ef
commit f14809393a
2 changed files with 2 additions and 2 deletions

View File

@ -415,7 +415,7 @@ char *sp_get_port_name(const struct sp_port *port);
*
* @since 0.1.1
*/
char *sp_get_port_description(struct sp_port *port);
char *sp_get_port_description(const struct sp_port *port);
/**
* Get the transport type used by a port.

View File

@ -126,7 +126,7 @@ SP_API char *sp_get_port_name(const struct sp_port *port)
RETURN_STRING(port->name);
}
SP_API char *sp_get_port_description(struct sp_port *port)
SP_API char *sp_get_port_description(const struct sp_port *port)
{
TRACE("%p", port);