Shm_Handle *shm;
size_t mapping_size;
- if (newsize <= 0)
+ if (newsize == 0)
return -1;
mapping_size = cserve2_shm_size_normalize(newsize, ARRAY_MINSIZE);
_xml_tag_parse_cb(void *data, Eina_Simple_XML_Type type, const char *content,
unsigned offset EINA_UNUSED, unsigned int length)
{
- if (length <= 0) return EINA_FALSE;
+ if (length == 0) return EINA_FALSE;
if (type == EINA_SIMPLE_XML_OPEN)
{
return EINA_FALSE;
num = eina_binbuf_length_get(svr->buf) - svr->write_buf_offset;
- if (num <= 0) return EINA_TRUE;
+ if (num == 0) return EINA_TRUE;
res = WriteFile(svr->pipe, eina_binbuf_string_get(svr->buf) + svr->write_buf_offset, num, &written, NULL);
if (!res)
return EINA_FALSE;
num = eina_binbuf_length_get(cl->buf) - cl->buf_offset;
- if (num <= 0) return EINA_TRUE;
+ if (num == 0) return EINA_TRUE;
res = WriteFile(svr->pipe, eina_binbuf_string_get(cl->buf) + cl->buf_offset, num, &written, NULL);
if (!res)
{
unsigned int i;
- if (!window || !state || (num <= 0))
+ if (!window || !state || (num == 0))
return;
INF("setting window state");
if (!win)
return;
- if ((!profiles) || (num_profiles <= 0))
+ if ((!profiles) || (num_profiles == 0))
ecore_x_window_prop_property_del(win, ECORE_X_ATOM_E_WINDOW_PROFILE_AVAILABLE_LIST);
else
{
if (!win)
return;
- if ((!profiles) || (count <= 0))
+ if ((!profiles) || (count == 0))
ecore_x_window_prop_property_del(win, ECORE_X_ATOM_E_WINDOW_PROFILE_AVAILABLE_LIST);
else
{
if (!_ecore_x_window_keytable_get(win, &keytable))
return EINA_FALSE;
- if (keytable.key_cnt <= 0)
+ if (keytable.key_cnt == 0)
return EINA_FALSE;
i = _ecore_x_window_keytable_key_search(&keytable, keycode);
//else hot_y = word;
if (!read_uint(map, fsize, &position, &bmsize)) goto close_file;
if (!read_uint(map, fsize, &position, &bmoffset)) goto close_file;
- if ((bmsize <= 0) || (bmoffset <= 0) || (bmoffset >= fsize)) goto close_file;
+ if ((bmsize == 0) || (bmoffset == 0) || (bmoffset >= fsize)) goto close_file;
if (search == BIGGEST)
{
pdelta = prop->w * prop->h;
//else hot_y = word;
if (!read_uint(map, fsize, &position, &bmsize)) goto close_file;
if (!read_uint(map, fsize, &position, &bmoffset)) goto close_file;
- if ((bmsize <= 0) || (bmoffset <= 0) || (bmoffset >= fsize)) goto close_file;
+ if ((bmsize == 0) || (bmoffset == 0) || (bmoffset >= fsize)) goto close_file;
if (search == BIGGEST)
{
pdelta = w * h;