]> sigrok.org Git - libserialport.git/commitdiff
linux: Fix warning by marking vid, pid variables unsigned.
authorMartin Ling <redacted>
Sun, 24 Aug 2014 13:08:00 +0000 (14:08 +0100)
committerMartin Ling <redacted>
Sun, 24 Aug 2014 13:08:00 +0000 (14:08 +0100)
linux.c

diff --git a/linux.c b/linux.c
index dbff4c4459282a376e2035c6e3f005474939d9a4..e995347ada193f049e1930ac0afafcc6f754ec29 100644 (file)
--- 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";