summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-05-26 04:58:26 +0000
committermdodd <mdodd@FreeBSD.org>2003-05-26 04:58:26 +0000
commit8b2214412defc39a4c9f54ca66adaf3a853e825a (patch)
tree2b0534649bdf35bf11857826596ef5dc49702dce /usr.bin
parent5f2aec7948925a38d9a95a47cb8bec978b87bc46 (diff)
downloadFreeBSD-src-8b2214412defc39a4c9f54ca66adaf3a853e825a.zip
FreeBSD-src-8b2214412defc39a4c9f54ca66adaf3a853e825a.tar.gz
Remove uninitialized local variable in favor of global.
PR: bin/52685 Submitted by: Alexander Nedotsukov <bland@mail.ru> Approved by: re (scottl)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/usbhidctl/usbhid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/usbhidctl/usbhid.c b/usr.bin/usbhidctl/usbhid.c
index 1e56a1b..a6c3351 100644
--- a/usr.bin/usbhidctl/usbhid.c
+++ b/usr.bin/usbhidctl/usbhid.c
@@ -201,7 +201,6 @@ dumpdata(int f, report_desc_t rd, int loop)
static int one = 1;
u_int32_t colls[100];
int sp = 0;
- int report_id;
char namebuf[10000], *namep;
hids = 0;
@@ -245,7 +244,7 @@ dumpdata(int f, report_desc_t rd, int loop)
if (all || gotname(namebuf)) {
if (!noname)
printf("%s=", namebuf);
- prdata(dbuf + (report_id != 0), n);
+ prdata(dbuf + (reportid != 0), n);
printf("\n");
}
}
OpenPOWER on IntegriCloud