aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-08-08 09:02:18 +0200
committerPřemysl Eric Janouch <p@janouch.name>2024-08-08 09:02:25 +0200
commitf15d887dcdb55a4214bc90308260501adf348e0b (patch)
tree65951b8d44f6c7f0ef47e3b39b40abd89a5193b4
parent841bc00c51488bbef07e70b046b3634ed6ca8b3c (diff)
downloadxK-f15d887dcdb55a4214bc90308260501adf348e0b.tar.gz
xK-f15d887dcdb55a4214bc90308260501adf348e0b.tar.xz
xK-f15d887dcdb55a4214bc90308260501adf348e0b.zip
Bump liberty
m---------liberty0
-rw-r--r--xC.c12
2 files changed, 6 insertions, 6 deletions
diff --git a/liberty b/liberty
-Subproject f04cc2c61e1a00db4d1af1bb55ca7e20b9c3db2
+Subproject 75fc6f1c374796f9e794297c3893089009b8772
diff --git a/xC.c b/xC.c
index 3e2a370..85d2e74 100644
--- a/xC.c
+++ b/xC.c
@@ -2567,7 +2567,7 @@ config_validate_nonnegative
return false;
}
-static struct config_schema g_config_server[] =
+static const struct config_schema g_config_server[] =
{
{ .name = "nicks",
.comment = "IRC nickname",
@@ -2664,7 +2664,7 @@ static struct config_schema g_config_server[] =
{}
};
-static struct config_schema g_config_general[] =
+static const struct config_schema g_config_general[] =
{
{ .name = "autosave",
.comment = "Save configuration automatically after each change",
@@ -2772,7 +2772,7 @@ static struct config_schema g_config_general[] =
{}
};
-static struct config_schema g_config_theme[] =
+static const struct config_schema g_config_theme[] =
{
#define XX(x, y, z) { .name = #y, .comment = #z, .type = CONFIG_ITEM_STRING, \
.on_change = on_config_theme_change },
@@ -9306,7 +9306,7 @@ config_dump_item (struct config_item *item, struct config_dump_data *data)
}
// Currently there's no reason for us to dump unknown items
- struct config_schema *schema = item->schema;
+ const struct config_schema *schema = item->schema;
if (!schema)
return;
@@ -13182,7 +13182,7 @@ try_handle_command_help_option (struct app_context *ctx, const char *name)
if (!item)
return false;
- struct config_schema *schema = item->schema;
+ const struct config_schema *schema = item->schema;
if (!schema)
{
log_global_error (ctx, "#s: #s", "Option not recognized", name);
@@ -15913,7 +15913,7 @@ on_config_relay_bind_change (struct config_item *item)
#ifdef TESTING
-static struct config_schema g_config_test[] =
+static const struct config_schema g_config_test[] =
{
{ .name = "foo", .type = CONFIG_ITEM_BOOLEAN, .default_ = "off" },
{ .name = "bar", .type = CONFIG_ITEM_INTEGER, .default_ = "1" },