summaryrefslogtreecommitdiff
path: root/lib/libusb/usage.c
diff options
context:
space:
mode:
authoraugustss <augustss@NetBSD.org>2000-04-02 11:10:53 +0000
committeraugustss <augustss@NetBSD.org>2000-04-02 11:10:53 +0000
commitd8dcced0069ebdbfc8178b232e7e543ae8ee1629 (patch)
treef6585bb0df73ee9f3bdf00d7e9e4d5751643f541 /lib/libusb/usage.c
parent1e5140923a83462a5075cb866ffc13797e16a383 (diff)
Some const poisoning. Suggested by Dave Sainty <dave@dtsp.co.nz>
Diffstat (limited to 'lib/libusb/usage.c')
-rw-r--r--lib/libusb/usage.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libusb/usage.c b/lib/libusb/usage.c
index a60cb2cf85e..cb3c0e5dfd4 100644
--- a/lib/libusb/usage.c
+++ b/lib/libusb/usage.c
@@ -1,4 +1,4 @@
-/* $NetBSD: usage.c,v 1.4 1999/07/02 15:46:53 simonb Exp $ */
+/* $NetBSD: usage.c,v 1.5 2000/04/02 11:10:53 augustss Exp $ */
/*
* Copyright (c) 1999 Lennart Augustsson <augustss@netbsd.org>
@@ -37,12 +37,12 @@
#define _PATH_HIDTABLE "/usr/share/misc/usb_hid_usages"
struct usage_in_page {
- char *name;
+ const char *name;
int usage;
};
static struct usage_page {
- char *name;
+ const char *name;
int usage;
struct usage_in_page *page_contents;
int pagesize, pagesizemax;
@@ -66,7 +66,7 @@ dump_hid_table(void)
#endif
void
-hid_init(char *hidname)
+hid_init(const char *hidname)
{
FILE *f;
char line[100], name[100], *p, *n;
@@ -150,7 +150,7 @@ hid_init(char *hidname)
#endif
}
-char *
+const char *
hid_usage_page(int i)
{
static char b[10];
@@ -166,7 +166,7 @@ hid_usage_page(int i)
return b;
}
-char *
+const char *
hid_usage_in_page(unsigned int u)
{
int page = HID_PAGE(u);