More missing const
diff --git a/contiki/ctk/ctk.c b/contiki/ctk/ctk.c
index f696ca6..19dd616 100644
--- a/contiki/ctk/ctk.c
+++ b/contiki/ctk/ctk.c
@@ -735,7 +735,7 @@
static void
window_new(CC_REGISTER_ARG struct ctk_window *window,
unsigned char w, unsigned char h,
- char *title)
+ const char *title)
{
if(w >= width - 2) {
@@ -784,7 +784,7 @@
void
ctk_window_new(struct ctk_window *window,
unsigned char w, unsigned char h,
- char *title)
+ const char *title)
{
window_new(window, w, h, title);
@@ -823,7 +823,7 @@
/*-----------------------------------------------------------------------------------*/
void
ctk_menu_new(CC_REGISTER_ARG struct ctk_menu *menu,
- char *title)
+ const char *title)
{
#if CTK_CONF_MENUS
menu->next = NULL;
@@ -849,7 +849,7 @@
/*-----------------------------------------------------------------------------------*/
unsigned char
ctk_menuitem_add(CC_REGISTER_ARG struct ctk_menu *menu,
- char *name)
+ const char *name)
{
#if CTK_CONF_MENUS
if(menu->nitems == CTK_CONF_MAXMENUITEMS) {
diff --git a/contiki/ctk/ctk.h b/contiki/ctk/ctk.h
index 3617a56..6c25356 100644
--- a/contiki/ctk/ctk.h
+++ b/contiki/ctk/ctk.h
@@ -233,6 +233,7 @@
do { memset((e)->text, 0, (e)->h * ((e)->len + 1)); \
(e)->xpos = 0; (e)->ypos = 0; } while(0)
+struct ctk_textentry;
typedef unsigned char (* ctk_textentry_input)(ctk_arch_key_t c,
struct ctk_textentry *t);