goto usage;
}
- if (strncmp(command, "list", strlen(command)) == 0)
+ if (strncmp(command, "list", strlen(command)+1) == 0)
{
if (argc != 3)
goto usage;
res = _e_info_client_eldbus_message("module_list_get", _e_info_client_cb_module_list_get);
}
- else if (strncmp(command, "load", strlen(command)) == 0)
+ else if (strncmp(command, "load", strlen(command)+1) == 0)
{
if (argc != 4)
goto usage;
"s",
module_name);
}
- else if (strncmp(command, "unload", strlen(command)) == 0)
+ else if (strncmp(command, "unload", strlen(command)+1) == 0)
{
if (argc != 4)
goto usage;
s1 = info1->option;
s2 = info2->option;
- return strncmp(s1, s2, strlen(s2));
+ return strncmp(s1, s2, strlen(s1)+1);
}
static void
{
proc_option_length = strlen(procinfo->option);
if (argv_len != proc_option_length) continue;
- if (!strncmp(argv[1]+1, procinfo->option, proc_option_length))
+ if (!strncmp(argv[1]+1, procinfo->option, argv_len+1))
{
if (procinfo->func)
procinfo->func(argc, argv);
{
proc_option_length = strlen(procinfo->option);
if (argv_len != proc_option_length) continue;
- if (!strncmp(argv[1]+1, procinfo->option, proc_option_length))
+ if (!strncmp(argv[1]+1, procinfo->option, argv_len+1))
{
if (procinfo->func)
procinfo->func(argc, argv);
{
proc_option_length = strlen(procinfo->option);
if (argv_len != proc_option_length) continue;
- if (!strncmp(argv[1]+1, procinfo->option, proc_option_length))
+ if (!strncmp(argv[1]+1, procinfo->option, argv_len+1))
{
if (procinfo->func)
procinfo->func(argc, argv);
{
proc_option_length = strlen(procinfo->option);
if (argv_len != proc_option_length) continue;
- if (!strncmp(argv[1]+1, procinfo->option, proc_option_length))
+ if (!strncmp(argv[1]+1, procinfo->option, argv_len+1))
{
if (procinfo->func)
procinfo->func(argc, argv);
{
optlen = strlen(procinfo->option);
if (arglen != optlen) continue;
- if (!strncmp(argv[1]+1, procinfo->option, optlen))
+ if (!strncmp(argv[1]+1, procinfo->option, arglen+1))
{
printf(" %s\n\n", (procinfo->description)?procinfo->description:"");
printf(" %s -%s %s\n", argv[0], procinfo->option, (procinfo->params)?procinfo->params:"");
{
optlen = strlen(procinfo->option);
if (arglen != optlen) continue;
- if (!strncmp(argv[1]+1, procinfo->option, optlen))
+ if (!strncmp(argv[1]+1, procinfo->option, arglen+1))
{
printf(" %s\n\n", (procinfo->description)?procinfo->description:"");
printf(" %s -%s %s\n", argv[0], procinfo->option, (procinfo->params)?procinfo->params:"");
{
optlen = strlen(procinfo->option);
if (arglen != optlen) continue;
- if (!strncmp(argv[1]+1, procinfo->option, optlen))
+ if (!strncmp(argv[1]+1, procinfo->option, arglen+1))
{
printf(" %s\n\n", (procinfo->description)?procinfo->description:"");
printf(" %s -%s %s\n", argv[0], procinfo->option, (procinfo->params)?procinfo->params:"");
{
optlen = strlen(procinfo->option);
if (arglen != optlen) continue;
- if (!strncmp(argv[1]+1, procinfo->option, optlen))
+ if (!strncmp(argv[1]+1, procinfo->option, arglen+1))
{
printf(" %s\n\n", (procinfo->description)?procinfo->description:"");
printf(" %s -%s %s\n", argv[0], procinfo->option, (procinfo->params)?procinfo->params:"");
#include "e_info_server_intern.h"
#include "e_utils_intern.h"
+#include "e_utils.h"
#include "e_comp_object.h"
#include "e_info_protocol_intern.h"
#include "e_info_server_input_intern.h"
e_comp_layer_name_get(layer_idx, tmp, sizeof(tmp));
- return strncmp(tmp, layer_name, strlen(tmp));
+ return e_util_strcmp(tmp, layer_name);
}
static int
EINA_LIST_FOREACH(module_hook, l, data)
{
- if (!strncmp(data->module_name, module_name, strlen(module_name)))
+ if (!e_util_strcmp(data->module_name, module_name))
{
data->func(data->data, log_path);
break;
EINA_LIST_FOREACH_SAFE(module_hook, l, l_next, hdata)
{
- if (!strncmp(hdata->module_name, module_name, strlen(module_name)))
+ if (!e_util_strcmp(hdata->module_name, module_name))
{
if (!func)
{
description = evas_device_description_get(dev);
if (!name || !description) continue;
- if ((!strncmp(name, e_devicemgr->last_device_ptr->name, strlen(e_devicemgr->last_device_ptr->name))) &&
- (!strncmp(description, e_devicemgr->last_device_ptr->identifier, strlen(e_devicemgr->last_device_ptr->identifier))) &&
+ if ((!e_util_strcmp(name, e_devicemgr->last_device_ptr->name)) &&
+ (!e_util_strcmp(description, e_devicemgr->last_device_ptr->identifier)) &&
(evas_device_class_get(dev) == (Evas_Device_Class)e_devicemgr->last_device_ptr->clas))
{
last_ptr = dev;
desc = evas_device_description_get(dev);
if (!name || !desc) continue;
- if ((!strncmp(name, e_devicemgr->last_device_ptr->name, strlen(e_devicemgr->last_device_ptr->name))) &&
- (!strncmp(desc, e_devicemgr->last_device_ptr->identifier, strlen(e_devicemgr->last_device_ptr->identifier))) &&
+ if ((!e_util_strcmp(name, e_devicemgr->last_device_ptr->name)) &&
+ (!e_util_strcmp(desc, e_devicemgr->last_device_ptr->identifier)) &&
(evas_device_class_get(dev) == (Evas_Device_Class)e_devicemgr->last_device_ptr->clas))
{
last_ptr = dev;
ec->e.state.rot.nopending_render = 1;
}
}
- else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_ICONIFY_BUFFER_FLUSH], strlen(hint->hint)))
+ else if (!e_util_strcmp(hint->hint, hint_names[E_POLICY_HINT_ICONIFY_BUFFER_FLUSH]))
{
- if (!strncmp(hint->val, "1", 1))
+ if (!e_util_strcmp(hint->val, "1"))
ec->exp_iconify.buffer_flush = EINA_TRUE;
else
ec->exp_iconify.buffer_flush = EINA_FALSE;
}
- else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_TRANSIENT_FOR_ALWAYS_ON_TOP], strlen(hint->hint)))
+ else if (!e_util_strcmp(hint->hint, hint_names[E_POLICY_HINT_TRANSIENT_FOR_ALWAYS_ON_TOP]))
{
- if (!strncmp(hint->val, "1", 1))
+ if (!e_util_strcmp(hint->val, "1"))
{
ELOGF("TF_SET", "Transient for Always_on_top enabled", ec);
ec->transient_for_always_on_top = EINA_TRUE;
ec->transient_for_always_on_top = EINA_FALSE;
}
}
- else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_BELONG_TO_PARENT], strlen(hint->hint)))
+ else if (!e_util_strcmp(hint->hint, hint_names[E_POLICY_HINT_BELONG_TO_PARENT]))
{
- if (!strncmp(hint->val, "1", 1))
+ if (!e_util_strcmp(hint->val, "1"))
{
ELOGF("TF_SET", "Set belong_to_parent", ec);
e_client_belong_to_parent_set(ec, EINA_TRUE);
e_client_belong_to_parent_set(ec, EINA_FALSE);
}
}
- else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_RESIZE_ASPECT_RATIO], strlen(hint->hint)))
+ else if (!e_util_strcmp(hint->hint, hint_names[E_POLICY_HINT_RESIZE_ASPECT_RATIO]))
{
- if (!strncmp(hint->val, "1", 1))
+ if (!e_util_strcmp(hint->val, "1"))
{
ELOGF("RESIZE", "Set resize aspect ratio.. ratio(%dx%d)", ec, ec->w, ec->h);
ec->manage_resize.enable_aspect_ratio = EINA_TRUE;
ec->manage_resize.enable_aspect_ratio = EINA_FALSE;
}
}
- else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_HEADER], strlen(hint->hint)))
+ else if (!e_util_strcmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_HEADER]))
{
int height = atoi(hint->val);
if (height > 0)
ec->manage_resize.header_h = 0;
}
}
- else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_FOOTER], strlen(hint->hint)))
+ else if (!e_util_strcmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_FOOTER]))
{
int height = atoi(hint->val);
if (height > 0)
ec->manage_resize.footer_h = 0;
}
}
- else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_VISIBILITY_IGNORE_GEOMETRY], strlen(hint->hint)))
+ else if (!e_util_strcmp(hint->hint, hint_names[E_POLICY_HINT_VISIBILITY_IGNORE_GEOMETRY]))
{
- if (!strncmp(hint->val, "1", 1))
+ if (!e_util_strcmp(hint->val, "1"))
{
ELOGF("POL_VIS", "Set ignore_geometry.. value(%s)", ec, hint->val);
ec->visibility.ignore_geometry = EINA_TRUE;
ec->visibility.ignore_geometry = EINA_FALSE;
}
}
- else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_RESIZE_PPU], strlen(hint->hint)))
+ else if (!e_util_strcmp(hint->hint, hint_names[E_POLICY_HINT_RESIZE_PPU]))
{
int ppu = atoi(hint->val);
if (ppu < 1) ppu = 1;
ELOGF("RESIZE", "Set resize unit. size:%d", ec, ppu);
e_client_resize_unit_size_set(ec, ppu);
}
- else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_SHADOW_TOP], strlen(hint->hint)))
+ else if (!e_util_strcmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_SHADOW_TOP]))
{
int size = atoi(hint->val);
if (size > 0)
ec->manage_resize.shadow.t = 0;
}
}
- else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_SHADOW_BOTTOM], strlen(hint->hint)))
+ else if (!e_util_strcmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_SHADOW_BOTTOM]))
{
int size = atoi(hint->val);
if (size > 0)
ec->manage_resize.shadow.b = 0;
}
}
- else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_SHADOW_LEFT], strlen(hint->hint)))
+ else if (!e_util_strcmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_SHADOW_LEFT]))
{
int size = atoi(hint->val);
if (size > 0)
ec->manage_resize.shadow.l = 0;
}
}
- else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_SHADOW_RIGHT], strlen(hint->hint)))
+ else if (!e_util_strcmp(hint->hint, hint_names[E_POLICY_HINT_DECORATION_SIZE_SHADOW_RIGHT]))
{
int size = atoi(hint->val);
if (size > 0)
return EINA_FALSE;
real_path = realpath(path, NULL);
- if (real_path && strncmp(path, real_path, strlen(path)))
+ if (real_path && e_util_strcmp(path, real_path))
{
if (del_link)
unlink(path);