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:
parent
7f450f46bd
commit
0666ccc7ca
3
linux.c
3
linux.c
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user