summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/calcurse.h2
-rw-r--r--src/utils.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index 35a64f0..ee6612f 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -893,7 +893,7 @@ void status_mesg (char *, char *);
void erase_window_part (WINDOW *, int, int, int, int);
WINDOW *popup (int, int, int, int, char *, char *, int);
void print_in_middle (WINDOW *, int, int, int, char *);
-int is_all_digit (char *);
+int is_all_digit (const char *);
long get_item_time (long);
int get_item_hour (long);
int get_item_min (long);
diff --git a/src/utils.c b/src/utils.c
index f7b500d..8e76547 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -234,7 +234,7 @@ print_in_middle (WINDOW *win, int starty, int startx, int width, char *string)
/* checks if a string is only made of digits */
int
-is_all_digit (char *string)
+is_all_digit (const char *string)
{
for (; *string; string++)
{