summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-12-09 22:33:58 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2011-12-09 22:35:53 +0100
commit27368d4ee6ea9d4909ba51ba2e1dbb88ee2a6165 (patch)
tree96a598855f99c743fbb89770a0f78669362d6d5a
parent4f4891bdb88410ae04225f3d6acfa31d73a3901a (diff)
downloadcalcurse-27368d4ee6ea9d4909ba51ba2e1dbb88ee2a6165.zip
src/utils.c: Mark is_all_digit() parameter const
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-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++)
{