From: Martin Ling Date: Sun, 24 Aug 2014 13:08:00 +0000 (+0100) Subject: linux: Fix warning by marking vid, pid variables unsigned. X-Git-Tag: libserialport-0.1.1~106 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0666ccc7ca446ce2960630e2707389852c812284;p=libserialport.git linux: Fix warning by marking vid, pid variables unsigned. --- diff --git a/linux.c b/linux.c index dbff4c4..e995347 100644 --- a/linux.c +++ b/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";