Skip to content
Snippets Groups Projects
Commit 410faa6d authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Minor changes to errors.

parent 5b24e533
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
* present.
*/
static const error_table_t *error_lookup_by_id(const error_table_t *table,
const int id)
int id)
{
while (table->name != 0) {
if (table->id == id) {
......@@ -26,7 +26,7 @@ static const error_table_t *error_lookup_by_id(const error_table_t *table,
return 0;
}
const char *error_to_str(const error_table_t *table, const int code)
const char *error_to_str(const error_table_t *table, int code)
{
const error_table_t *msg = error_lookup_by_id(table, code);
if (msg != 0) {
......
......@@ -28,7 +28,7 @@ typedef struct error_table_t {
*
* \return String containing the error message.
*/
const char *error_to_str(const error_table_t *table, const int code);
const char *error_to_str(const error_table_t *table, int code);
/*!
* \brief Safe errno mapper that automatically appends sentinel value.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment