summaryrefslogtreecommitdiff
path: root/src/hid_openbsd.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-04-17 20:57:34 +0100
committerColin Watson <cjwatson@debian.org>2020-04-18 09:48:21 +0100
commitdf7226c4b684fd229dc046388225c69ded877721 (patch)
treee69014e1ee868c4ec178b8a36baae7de31786beb /src/hid_openbsd.c
parentf794345c2d734f593da8ed7754e5dbb5809c688d (diff)
parent75073d0a8478441cc97a6efa10b566c5fb1dac81 (diff)
Update upstream source from tag 'upstream/1.4.0'
Update to upstream version '1.4.0' with Debian dir 64889867df57bd13ea0cb964223697d378d391ce
Diffstat (limited to 'src/hid_openbsd.c')
-rw-r--r--src/hid_openbsd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/hid_openbsd.c b/src/hid_openbsd.c
index 8b92bd6..2b31dba 100644
--- a/src/hid_openbsd.c
+++ b/src/hid_openbsd.c
@@ -29,7 +29,7 @@ struct hid_openbsd {
29}; 29};
30 30
31int 31int
32fido_dev_info_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen) 32fido_hid_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen)
33{ 33{
34 size_t i; 34 size_t i;
35 char path[64]; 35 char path[64];
@@ -101,6 +101,12 @@ fido_dev_info_manifest(fido_dev_info_t *devlist, size_t ilen, size_t *olen)
101 101
102 di = &devlist[*olen]; 102 di = &devlist[*olen];
103 memset(di, 0, sizeof(*di)); 103 memset(di, 0, sizeof(*di));
104 di->io = (fido_dev_io_t) {
105 fido_hid_open,
106 fido_hid_close,
107 fido_hid_read,
108 fido_hid_write,
109 };
104 if ((di->path = strdup(path)) == NULL || 110 if ((di->path = strdup(path)) == NULL ||
105 (di->manufacturer = strdup(udi.udi_vendor)) == NULL || 111 (di->manufacturer = strdup(udi.udi_vendor)) == NULL ||
106 (di->product = strdup(udi.udi_product)) == NULL) { 112 (di->product = strdup(udi.udi_product)) == NULL) {