lsusb: initialize variables to 0, fix type warning

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
Hiltjo Posthuma 2014-02-14 14:42:48 +01:00 committed by sin
parent b0576fc22b
commit 923773f9d8

View File

@ -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);