diff options
author | 2002-06-11 05:20:19 +0000 | |
---|---|---|
committer | 2002-06-11 05:20:19 +0000 | |
commit | 0072e412fd33acfee7074d3ff1154f8cadb34ac8 (patch) | |
tree | db49824c2f8a3d39cea54f912219cfe68f559c3e | |
parent | err(3) appends a newline already; ok miod@ (diff) | |
download | wireguard-openbsd-0072e412fd33acfee7074d3ff1154f8cadb34ac8.tar.xz wireguard-openbsd-0072e412fd33acfee7074d3ff1154f8cadb34ac8.zip |
strike newline from err(3) functions; ok nate@
-rw-r--r-- | lib/libusbhid/usage.c | 10 |
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) |