[hackers] [ubase] lsusb: initialize variables to 0, fix type warning || Hiltjo Posthuma
commit 923773f9d888a8c72efc93cbeb46fbd5992e2125
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Feb 14 14:42:48 2014 +0100
lsusb: initialize variables to 0, fix type warning
Signed-off-by: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
diff --git a/lsusb.c b/lsusb.c
index 362c4f4..058124a 100644
--- a/lsusb.c
+++ b/lsusb.c
_AT_@ -31,8 +31,7 @@ lsusb(const char *file)
char *cwd;
char path[PATH_MAX];
char buf[BUFSIZ];
- int busnum, devnum, pid, vid;
- int i = 0;
+ unsigned int i = 0, busnum = 0, devnum = 0, pid = 0, vid = 0;
cwd = agetcwd();
snprintf(path, sizeof(path), "%s/%s/uevent", cwd, file);
Received on Fri Feb 14 2014 - 15:11:05 CET
This archive was generated by hypermail 2.3.0
: Fri Feb 14 2014 - 15:12:23 CET