]> sigrok.org Git - libserialport.git/commitdiff
Constify the sp_get_port_transport() parameter.
authorUwe Hermann <redacted>
Sun, 19 Apr 2015 16:28:10 +0000 (18:28 +0200)
committerUwe Hermann <redacted>
Sun, 19 Apr 2015 16:28:10 +0000 (18:28 +0200)
libserialport.h.in
serialport.c

index 49697a941cdb1f19298c8c8cdd0094180974786a..1dd4715f289ef740fb9fc76625d3cae809e1a5ef 100644 (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.
index 9826df45597711d4e81a6566cf81590e8128922e..272bdf6013a525b96a30cd869ea3e99ca0ea0499 100644 (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);