Fix warnings

n_evas is unsigned so always above or equal 0
This commit is contained in:
Daniel Zaoui 2018-06-04 12:23:31 +03:00
parent b95c50de65
commit ab22f74b0a
1 changed files with 3 additions and 3 deletions

View File

@ -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));
}
}