src/utils.c: Mark is_all_digit() parameter const

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2011-12-09 22:33:58 +01:00
parent 4f4891bdb8
commit 27368d4ee6
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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++)
{