From: Uwe Hermann Date: Sun, 19 Apr 2015 17:33:22 +0000 (+0200) Subject: windows.c: Constify a few function parameters. X-Git-Tag: libserialport-0.1.1~44 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=eb50b1aca66e01d7d7e06a867be85860597a8be1;p=libserialport.git windows.c: Constify a few function parameters. --- diff --git a/windows.c b/windows.c index 204ae57..60e88cc 100644 --- a/windows.c +++ b/windows.c @@ -24,8 +24,8 @@ /* USB path is a string of at most 8 decimal numbers < 128 separated by dots. */ #define MAX_USB_PATH ((8 * 3) + (7 * 1) + 1) -static void enumerate_hub(struct sp_port *port, char *hub_name, - char *parent_path); +static void enumerate_hub(struct sp_port *port, const char *hub_name, + const char *parent_path); static char *wc_to_utf8(PWCHAR wc_buffer, ULONG size) { @@ -148,7 +148,7 @@ static char *get_string_descriptor(HANDLE hub_device, ULONG connection_index, } static void enumerate_hub_ports(struct sp_port *port, HANDLE hub_device, - ULONG nb_ports, char *parent_path) + ULONG nb_ports, const char *parent_path) { char path[MAX_USB_PATH]; ULONG index = 0; @@ -233,8 +233,8 @@ static void enumerate_hub_ports(struct sp_port *port, HANDLE hub_device, } } -static void enumerate_hub(struct sp_port *port, char *hub_name, - char *parent_path) +static void enumerate_hub(struct sp_port *port, const char *hub_name, + const char *parent_path) { USB_NODE_INFORMATION hub_info; HANDLE hub_device;