Skip to contentSkip to conversation

ui/spice-input: Remove superfluous forward declaration

PATCH Applied Philippe Mathieu-Daudé 2 participants 3 messages Sep 9, 2020 – Sep 16, 2020

lore
Share & tools
lore
#0 lore raw

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
index d5bba231c95..21990fa9962 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw

Le 09/09/2020 à 19:11, Philippe Mathieu-Daudé a écrit :

Quoted 15 lines

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 -0
index d5bba231c95..21990fa9962 100644

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,
#2 lore raw
In reply to Philippe Mathieu-Daudé

Le 09/09/2020 à 19:11, Philippe Mathieu-Daudé a écrit :

Quoted 15 lines

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 -0
index d5bba231c95..21990fa9962 100644

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