summaryrefslogtreecommitdiff
path: root/lib/libusbhid/usage.c
diff options
context:
space:
mode:
authorJason Peel <jsyn@cvs.openbsd.org>2002-06-11 05:20:20 +0000
committerJason Peel <jsyn@cvs.openbsd.org>2002-06-11 05:20:20 +0000
commit1e2f04221a9d882778b52af36730c25df2ef549b (patch)
tree3d66b8a1a45b6af02f2325dc20ec67c43d0d8966 /lib/libusbhid/usage.c
parent216b8054f7c51d8f9ad3af1c4e652c7a0fb9c999 (diff)
strike newline from err(3) functions; ok nate@
Diffstat (limited to 'lib/libusbhid/usage.c')
-rw-r--r--lib/libusbhid/usage.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libusbhid/usage.c b/lib/libusbhid/usage.c
index e5122c1745e..be6cf49a180 100644
--- a/lib/libusbhid/usage.c
+++ b/lib/libusbhid/usage.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usage.c,v 1.2 2002/05/10 00:09:17 nate Exp $ */
+/* $OpenBSD: usage.c,v 1.3 2002/06/11 05:20:19 jsyn Exp $ */
/* $NetBSD: usage.c,v 1.1 2001/12/28 17:45:27 augustss Exp $ */
/*
@@ -94,7 +94,7 @@ hid_init(const char *hidname)
no = -1;
else if (sscanf(line, " 0x%x %[^\n]", &no, name) != 2 &&
sscanf(line, " %d %[^\n]", &no, name) != 2)
- errx(1, "file %s, line %d, syntax error\n",
+ errx(1, "file %s, line %d, syntax error",
hidname, lineno);
for (p = name; *p; p++)
if (isspace(*p) || *p == '.')
@@ -104,7 +104,7 @@ hid_init(const char *hidname)
err(1, "strdup");
if (isspace(line[0])) {
if (!curpage)
- errx(1, "file %s, line %d, syntax error\n",
+ errx(1, "file %s, line %d, syntax error",
hidname, lineno);
if (curpage->pagesize >= curpage->pagesizemax) {
curpage->pagesizemax += 10;
@@ -158,7 +158,7 @@ hid_usage_page(int i)
int k;
if (!pages)
- errx(1, "no hid table\n");
+ errx(1, "no hid table");
for (k = 0; k < npages; k++)
if (pages[k].usage == i)
@@ -201,7 +201,7 @@ hid_parse_usage_page(const char *name)
int k;
if (!pages)
- errx(1, "no hid table\n");
+ errx(1, "no hid table");
for (k = 0; k < npages; k++)
if (strcmp(pages[k].name, name) == 0)