Fix warnings

n_evas is unsigned so always above or equal 0
master
Daniel Zaoui 4 years ago
parent b95c50de65
commit ab22f74b0a
  1. 6
      src/bin/recorder.c

@ -186,13 +186,13 @@ _event_key_cb(void *data, const Efl_Event *event)
if (!strcmp(key, _shot_key))
{
_printf(2, "Take Screenshot: %s timestamp=<%u>\n", __func__, timestamp);
if (n_evas >= 0) _add_to_list(EXACTNESS_ACTION_TAKE_SHOT, n_evas, timestamp, NULL, 0);
_add_to_list(EXACTNESS_ACTION_TAKE_SHOT, n_evas, timestamp, NULL, 0);
return;
}
if (!strcmp(key, STABILIZE_KEY_STR))
{
_printf(2, "Stabilize: %s timestamp=<%u>\n", __func__, timestamp);
if (n_evas >= 0) _add_to_list(EXACTNESS_ACTION_STABILIZE, n_evas, timestamp, NULL, 0);
_add_to_list(EXACTNESS_ACTION_STABILIZE, n_evas, timestamp, NULL, 0);
return;
}
if (!strcmp(key, SAVE_KEY_STR))
@ -215,7 +215,7 @@ _event_key_cb(void *data, const Efl_Event *event)
t.string = eina_stringshare_add(efl_input_key_string_get(evk));
t.compose = eina_stringshare_add(efl_input_key_compose_get(evk));
t.keycode = efl_input_key_code_get(evk);
if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, &t, sizeof(t));
_add_to_list(evt, n_evas, timestamp, &t, sizeof(t));
}
}

Loading…
Cancel
Save