mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
d/opengloves: Use correct argument when casting
This commit is contained in:
parent
3485babd71
commit
42f5cf4c9d
|
@ -43,7 +43,7 @@ opengloves_bt_read(struct opengloves_communication_device *ocdev, char *data, si
|
||||||
static int
|
static int
|
||||||
opengloves_bt_write(struct opengloves_communication_device *ocdev, const uint8_t *data, size_t length)
|
opengloves_bt_write(struct opengloves_communication_device *ocdev, const uint8_t *data, size_t length)
|
||||||
{
|
{
|
||||||
struct opengloves_bt_device *obdev = (struct opengloves_bt_device *)obdev;
|
struct opengloves_bt_device *obdev = (struct opengloves_bt_device *)ocdev;
|
||||||
|
|
||||||
return write(obdev->sock, data, length);
|
return write(obdev->sock, data, length);
|
||||||
}
|
}
|
||||||
|
@ -51,14 +51,12 @@ opengloves_bt_write(struct opengloves_communication_device *ocdev, const uint8_t
|
||||||
static void
|
static void
|
||||||
opengloves_bt_destroy(struct opengloves_communication_device *ocdev)
|
opengloves_bt_destroy(struct opengloves_communication_device *ocdev)
|
||||||
{
|
{
|
||||||
struct opengloves_bt_device *obdev = (struct opengloves_bt_device *)obdev;
|
struct opengloves_bt_device *obdev = (struct opengloves_bt_device *)ocdev;
|
||||||
|
|
||||||
opengloves_bt_close(obdev);
|
opengloves_bt_close(obdev);
|
||||||
free(obdev);
|
free(obdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
opengloves_bt_open(const char *btaddr, struct opengloves_communication_device **out_comm_dev)
|
opengloves_bt_open(const char *btaddr, struct opengloves_communication_device **out_comm_dev)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue