since this is the only usecase, return a *libusbDevice for a new

pointer.
This commit is contained in:
Sebastian Zagrodzki
2017-04-09 00:12:39 +02:00
parent 3ec748db4c
commit ca02c03241
2 changed files with 3 additions and 3 deletions

View File

@@ -306,7 +306,7 @@ func newFakeLibusb() *fakeLibusb {
// without using the full USB stack. Since the fake library uses the
// libusbDevice only as an identifier, use an arbitrary unique pointer.
// The contents of these pointers is never accessed.
fl.fakeDevices[(*libusbDevice)(newCPointer())] = &fakeDevice{
fl.fakeDevices[newDevicePointer()] = &fakeDevice{
desc: d,
alt: 0,
}