static int callback_id_table[10] = { 0, };
static gboolean run_test(int selected_number);
-static void __print_menu()
+static void *__print_menu(void *arg)
{
int test_num = 0;
int run_next = 1;
run_next = run_test(test_num);
}
+ return NULL;
}
-static void __update_cb(char **table, int rows, int cols)
+static void __update_cb(char **table, int rows, int cols, void *user_data)
{
struct rua_rec record;
int i = 0;
int id = 0;
printf("Enter callback_id (The number from register_callback) : ");
- scanf("%d", &id);
+ ret = scanf("%d", &id);
+ if (ret < 0) {
+ printf("scanf fail %d", ret);
+ return -1;
+ }
+
for (i = 0; i < 10; i++) {
if (callback_id_table[i] == id) {