int mm_attrs_set_valist (MMHandleType attrs, char **err_attr_name, const char *attribute_name, va_list var_args)
{
const char *name = NULL;
- unsigned int ret = MM_ERROR_NONE;
+ int ret = MM_ERROR_NONE;
return_val_if_fail(attrs, MM_ERROR_COMMON_INVALID_ARGUMENT);
// return_val_if_fail(err_attr_name, MM_ERROR_COMMON_INVALID_ARGUMENT);
if (err_attr_name)
*err_attr_name = strdup(name);
- if (ret == MM_ERROR_COMMON_OUT_OF_ARRAY) { //to avoid confusing
+ if (ret == (int)MM_ERROR_COMMON_OUT_OF_ARRAY) { //to avoid confusing
//mmf_debug(MMF_DEBUG_ERROR, "result of mm_attrs_get_index is MM_ERROR_COMMON_OUT_OF_ARRAY so return(ret = %x, name:%s)",ret, name);
return MM_ERROR_COMMON_ATTR_NOT_EXIST;
} else {
int mm_attrs_get_valist (MMHandleType attrs, char **err_attr_name, const char *attribute_name, va_list var_args)
{
const char *name = NULL;
- unsigned int ret = MM_ERROR_NONE;
+ int ret = MM_ERROR_NONE;
return_val_if_fail(attrs, MM_ERROR_COMMON_INVALID_ARGUMENT);
// return_val_if_fail(err_attr_name, MM_ERROR_COMMON_INVALID_ARGUMENT);
if (err_attr_name)
*err_attr_name = strdup(name);
- if (ret == MM_ERROR_COMMON_OUT_OF_ARRAY) //to avoid confusing
+ if (ret == (int)MM_ERROR_COMMON_OUT_OF_ARRAY) //to avoid confusing
return MM_ERROR_COMMON_ATTR_NOT_EXIST;
else
return ret;