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

linux: Fix warning by marking vid, pid variables unsigned.

This commit is contained in:
Martin Ling 2014-08-24 14:08:00 +01:00
parent 7f450f46bd
commit 0666ccc7ca

View File

@ -25,7 +25,8 @@ SP_PRIV enum sp_return get_port_details(struct sp_port *port)
/* Description limited to 127 char,
anything longer would not be user friendly anyway */
char description[128];
int bus, address, vid, pid = -1;
int bus, address;
unsigned int vid, pid;
char manufacturer[128], product[128], serial[128];
char baddr[32];
const char dir_name[] = "/sys/class/tty/%s/device/%s%s";