We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6bccb72 + 486dbb2 commit 7af2982Copy full SHA for 7af2982
include/private/error.h
@@ -39,4 +39,4 @@ struct error_code {
39
char *const desc;
40
};
41
42
-extern struct error_code *perror;
+extern const struct error_code * const perror;
kernel/error.c
@@ -3,7 +3,7 @@
3
#include "private/error.h"
4
5
/* Ordered by enum value for quick linear search */
6
-static struct error_code error_desc[] = {
+static const struct error_code error_desc[] = {
7
{ERR_OK, "no error"},
8
{ERR_FAIL, "generic failure"},
9
@@ -35,4 +35,4 @@ static struct error_code error_desc[] = {
35
{ERR_UNKNOWN, "unknown error"},
36
37
38
-struct error_code *perror = error_desc;
+const struct error_code * const perror = error_desc;
0 commit comments