Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
0a2f1cf8
Commit
0a2f1cf8
authored
Jun 12, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/libs/libhutils/*: change error codes for clarity
parent
b0d95efd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
hutils_err.c
src/libs/libhutils/hutils_err.c
+1
-5
hutils_err.h
src/libs/libhutils/hutils_err.h
+1
-5
No files found.
src/libs/libhutils/hutils_err.c
View file @
0a2f1cf8
...
...
@@ -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 */
...
...
src/libs/libhutils/hutils_err.h
View file @
0a2f1cf8
...
...
@@ -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
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment