diff --git a/attrib/gatttool.c b/attrib/gatttool.c
index 2d03875..4309d20 100644
--- a/attrib/gatttool.c
+++ b/attrib/gatttool.c
return TRUE;
}
-static GOptionEntry primary_char_options[] = {
+static const GOptionEntry primary_char_options[] = {
{ "start", 's' , 0, G_OPTION_ARG_INT, &opt_start,
"Starting handle (optional)", "0x0001" },
{ "end", 'e' , 0, G_OPTION_ARG_INT, &opt_end,
{ NULL },
};
-static GOptionEntry char_rw_options[] = {
+static const GOptionEntry char_rw_options[] = {
{ "handle", 'a' , 0, G_OPTION_ARG_INT, &opt_handle,
"Read/Write characteristic by handle (required)", "0x0001" },
{ "value", 'n' , 0, G_OPTION_ARG_STRING, &opt_value,
{NULL},
};
-static GOptionEntry gatt_options[] = {
+static const GOptionEntry gatt_options[] = {
{ "primary", 0, 0, G_OPTION_ARG_NONE, &opt_primary,
"Primary Service Discovery", NULL },
{ "characteristics", 0, 0, G_OPTION_ARG_NONE, &opt_characteristics,
{ NULL },
};
-static GOptionEntry options[] = {
+static const GOptionEntry options[] = {
{ "adapter", 'i', 0, G_OPTION_ARG_STRING, &opt_src,
"Specify local adapter interface", "hciX" },
{ "device", 'b', 0, G_OPTION_ARG_STRING, &opt_dst,
diff --git a/attrib/interactive.c b/attrib/interactive.c
index 171b957..c0262e8 100644
--- a/attrib/interactive.c
+++ b/attrib/interactive.c
gatt_exchange_mtu(attrib, opt_mtu, exchange_mtu_cb, NULL);
}
-static struct {
+static const struct {
const char *cmd;
void (*func)(int argcp, char **argvp);
const char *params;