Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/usbhidctl Update for new libusb.
details: https://anonhg.NetBSD.org/src/rev/5a32ff965b07
branches: trunk
changeset: 472911:5a32ff965b07
user: augustss <augustss%NetBSD.org@localhost>
date: Wed May 12 00:05:11 1999 +0000
description:
Update for new libusb.
diffstat:
usr.bin/usbhidctl/usbhid.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 33ec3b23d032 -r 5a32ff965b07 usr.bin/usbhidctl/usbhid.c
--- a/usr.bin/usbhidctl/usbhid.c Wed May 12 00:04:49 1999 +0000
+++ b/usr.bin/usbhidctl/usbhid.c Wed May 12 00:05:11 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbhid.c,v 1.9 1999/05/11 21:02:25 augustss Exp $ */
+/* $NetBSD: usbhid.c,v 1.10 1999/05/12 00:05:11 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -181,16 +181,16 @@
void
prdata(u_char *buf, struct hid_item *h)
{
- u_long data;
+ u_int data;
int i, pos;
pos = h->pos;
for (i = 0; i < h->report_count; i++) {
- data = getdata(buf, h);
+ data = get_data(buf, h);
if (h->logical_minimum < 0)
- printf("%ld", (long)data);
+ printf("%d", (int)data);
else
- printf("%lu", data);
+ printf("%u", data);
pos += h->report_size;
}
}
Home |
Main Index |
Thread Index |
Old Index