From 27368d4ee6ea9d4909ba51ba2e1dbb88ee2a6165 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 9 Dec 2011 22:33:58 +0100 Subject: src/utils.c: Mark is_all_digit() parameter const Signed-off-by: Lukas Fleischer --- src/calcurse.h | 2 +- src/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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++) { -- cgit v1.2.3-70-g09d2