dbus: Make cme_errors_mapping static const

This commit is contained in:
Slava Monich 2018-06-28 18:51:55 +03:00 committed by Denis Kenzior
parent c292d771b7
commit c35fb6b1a3
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ struct error_mapping_entry {
DBusMessage *(*ofono_error_func)(DBusMessage *);
};
struct error_mapping_entry cme_errors_mapping[] = {
static const struct error_mapping_entry cme_errors_mapping[] = {
{ 3, __ofono_error_not_allowed },
{ 4, __ofono_error_not_supported },
{ 16, __ofono_error_incorrect_password },
@ -422,7 +422,7 @@ DBusMessage *__ofono_error_network_terminated(DBusMessage *msg)
DBusMessage *__ofono_error_from_error(const struct ofono_error *error,
DBusMessage *msg)
{
struct error_mapping_entry *e;
const struct error_mapping_entry *e;
int maxentries;
int i;