From f14809393ace8e5f9a664975f34b701d1e35d2fa Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 19 Apr 2015 19:00:52 +0200 Subject: [PATCH] Constify the sp_get_port_description() parameter. --- libserialport.h.in | 2 +- serialport.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libserialport.h.in b/libserialport.h.in index 1dd4715..24e1a40 100644 --- a/libserialport.h.in +++ b/libserialport.h.in @@ -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. diff --git a/serialport.c b/serialport.c index 272bdf6..074534e 100644 --- a/serialport.c +++ b/serialport.c @@ -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);