Diff for /qemu/hw/stellaris_input.c between versions 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2018/04/24 19:01:02 version 1.1.1.5, 2018/04/24 19:28:51
Line 77  void stellaris_gamepad_init(int n, qemu_ Line 77  void stellaris_gamepad_init(int n, qemu_
     gamepad_state *s;      gamepad_state *s;
     int i;      int i;
   
     s = (gamepad_state *)qemu_mallocz(sizeof (gamepad_state));      s = (gamepad_state *)g_malloc0(sizeof (gamepad_state));
     s->buttons = (gamepad_button *)qemu_mallocz(n * sizeof (gamepad_button));      s->buttons = (gamepad_button *)g_malloc0(n * sizeof (gamepad_button));
     for (i = 0; i < n; i++) {      for (i = 0; i < n; i++) {
         s->buttons[i].irq = irq[i];          s->buttons[i].irq = irq[i];
         s->buttons[i].keycode = keycode[i];          s->buttons[i].keycode = keycode[i];

Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.5


unix.superglobalmegacorp.com