ui/spice-input: Remove superfluous forward declaration
PATCH 1/1 ui/spice-input: Remove superfluous forward declaration
We only need to forward-declare kbd_push_key() and kbd_get_leds() which are used in kbd_interface, not kbd_leds(). Remove this superfluous forward declaration.
--- ui/spice-input.c | 1 - 1 file changed, 1 deletion(-)
ui/spice-input.c +0 -1
@@ -36,7 +36,6 @@ typedef struct QemuSpiceKbd {static void kbd_push_key (SpiceKbdInstance *sin,uint8_t frag);static uint8_t kbd_get_leds (SpiceKbdInstance *sin); -static void kbd_leds (void *opaque,int l);static const SpiceKbdInterface kbd_interface = { .base.type =SPICE_INTERFACE_KEYBOARD ,
Signature · 1 line
2.26.2
Le 09/09/2020 à 19:11, Philippe Mathieu-Daudé a écrit :
Quoted 15 lines
We only need to forward-declare
kbd_push_key()andkbd_get_leds()which are used inkbd_interface, notkbd_leds(). Remove this superfluous forward declaration.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- ui/spice-input.c | 1 - 1 file changed, 1 deletion(-)ui/spice-input.c +0
-0
ui/spice-input.c typedef struct QemuSpiceKbd { · line 41
Quoted 7 lines
ui/spice-input.c +0
-1@@ -36,7 +36,6 @@ typedef struct QemuSpiceKbd {static void kbd_push_key (SpiceKbdInstance *sin,uint8_t frag);static uint8_t kbd_get_leds (SpiceKbdInstance *sin); -static void kbd_leds (void *opaque,int l);static const SpiceKbdInterface kbd_interface = { .base.type =SPICE_INTERFACE_KEYBOARD ,
Laurent Vivier
AppliedLe 09/09/2020 à 19:11, Philippe Mathieu-Daudé a écrit :
Quoted 15 lines
We only need to forward-declare
kbd_push_key()andkbd_get_leds()which are used inkbd_interface, notkbd_leds(). Remove this superfluous forward declaration.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- ui/spice-input.c | 1 - 1 file changed, 1 deletion(-)ui/spice-input.c +0
-0
ui/spice-input.c typedef struct QemuSpiceKbd { · line 41
Quoted 7 lines
ui/spice-input.c +0
-1@@ -36,7 +36,6 @@ typedef struct QemuSpiceKbd {static void kbd_push_key (SpiceKbdInstance *sin,uint8_t frag);static uint8_t kbd_get_leds (SpiceKbdInstance *sin); -static void kbd_leds (void *opaque,int l);static const SpiceKbdInterface kbd_interface = { .base.type =SPICE_INTERFACE_KEYBOARD ,
Applied to my trivial-patches branch.
Thanks,
Laurent