ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit 923773f9d888a8c72efc93cbeb46fbd5992e2125
parent b0576fc22bc5e63898a893e38490170cde220509
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri Feb 14 14:42:48 +0100

lsusb: initialize variables to 0, fix type warning

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
lsusb.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lsusb.c b/lsusb.c @@ -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);