Commit 0a2f1cf8 authored by Lucas Russo's avatar Lucas Russo

src/libs/libhutils/*: change error codes for clarity

parent b0d95efd
......@@ -14,11 +14,7 @@ static const char *hutils_err [HUTILS_ERR_END] =
{
[HUTILS_SUCCESS] = "Success",
[HUTILS_ERR_ALLOC] = "Could not allocate memory",
[HUTILS_ERR_NULL_POINTER] = "Null pointer received",
[HUTILS_ERR_NO_FUNC_REG] = "No function registered",
[HUTILS_ERR_INV_LESS_ARGS] = "Less arguments than specified passed",
[HUTILS_ERR_INV_MORE_ARGS] = "More arguments than specified passed",
[HUTILS_ERR_INV_SIZE_ARG] = "Invalid size of argument size"
[HUTILS_ERR_CFG] = "Could not get property from config file"
};
/* Convert enumeration type to string */
......
......@@ -15,11 +15,7 @@ enum _hutils_err_e
{
HUTILS_SUCCESS = 0, /* No error */
HUTILS_ERR_ALLOC, /* Could not allocate memory */
HUTILS_ERR_NULL_POINTER, /* Null pointer received */
HUTILS_ERR_NO_FUNC_REG, /* No function registered */
HUTILS_ERR_INV_LESS_ARGS, /* Less arguments than specified passed */
HUTILS_ERR_INV_MORE_ARGS, /* More arguments than specified passed */
HUTILS_ERR_INV_SIZE_ARG, /* Invalid size of argument size */
HUTILS_ERR_CFG, /* Could not get property from config file */
HUTILS_ERR_END
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment