From 39f286ce3920998b6d1da6293b5dd6bddf7c56d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Thu, 3 Mar 2016 10:53:42 +0100 Subject: [PATCH] Remove redundant struct identifiers. --- right/usb_composite_device.h | 2 +- right/usb_interface_keyboard.h | 3 ++- right/usb_interface_mouse.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/right/usb_composite_device.h b/right/usb_composite_device.h index f082a3b..1e74c4c 100644 --- a/right/usb_composite_device.h +++ b/right/usb_composite_device.h @@ -12,7 +12,7 @@ // Typedefs: - typedef struct _usb_device_composite_struct { + typedef struct { usb_device_handle deviceHandle; class_handle_t mouseHandle; class_handle_t keyboardHandle; diff --git a/right/usb_interface_keyboard.h b/right/usb_interface_keyboard.h index abd1f0a..4ecfa15 100644 --- a/right/usb_interface_keyboard.h +++ b/right/usb_interface_keyboard.h @@ -31,13 +31,14 @@ // Typedefs: - typedef struct usb_keyboard_report { + typedef struct { uint8_t modifiers; uint8_t reserved; // Always must be 0 uint8_t scancodes[USB_KEYBOARD_MAX_KEYS]; } __attribute__ ((packed)) usb_keyboard_report_t; // Variables: + extern usb_device_class_struct_t UsbKeyboardClass; // Functions: diff --git a/right/usb_interface_mouse.h b/right/usb_interface_mouse.h index b346f6e..b706f2e 100644 --- a/right/usb_interface_mouse.h +++ b/right/usb_interface_mouse.h @@ -30,7 +30,7 @@ // Typedefs: - typedef struct usb_mouse_report { + typedef struct { uint8_t buttons; int16_t x; int16_t y;