X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=windows.c;h=b4119187de70a820f7e44ac113a5da437c620c08;hb=1a584c45b02456ebcb197ba801b0ceae810e84e3;hp=204ae57bcbc1af04db0b5b2cfda86f431d6388a7;hpb=dc422c04af5c63e31de6af2eedcebbfc961ee9e2;p=libserialport.git
diff --git a/windows.c b/windows.c
index 204ae57..b411918 100644
--- a/windows.c
+++ b/windows.c
@@ -18,14 +18,15 @@
* along with this program. If not, see .
*/
+#include
#include "libserialport.h"
#include "libserialport_internal.h"
/* 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 +149,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 +234,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;