Add a check for lack of memory
[platform/core/uifw/at-spi2-atk.git] / test / keysynth-demo.c
index f5b4158..5f6b6f7 100644 (file)
@@ -26,7 +26,7 @@
 #include <stdlib.h>
 #include <gtk/gtk.h>
 #include <gdk/gdkx.h>
-#include "spi.h"
+#include <cspi/spi.h>
 
 #define LABELMAXLEN 20
 #define MIN_KEYCODE 9
@@ -129,7 +129,7 @@ select_line (gint lineno)
 
 
 static ScanState*
-scan_state ()
+scan_state (void)
 {
   static ScanState state = {SCAN_IDLE, 0, 0};
   return &state;
@@ -171,7 +171,6 @@ increment_scan (gpointer data)
       case SCAN_LINES_DONE:
       case SCAN_KEYS_DONE:
          return FALSE;
-      default:
     }
   return TRUE;
 }
@@ -383,7 +382,7 @@ synth_keycode (GtkButton *button, KeyCode *keycode)
 }
 
 static void
-create_vkbd()
+create_vkbd(void)
 {
   GtkWidget *window, *container, *hbox;
   int i, j;