aboutsummaryrefslogtreecommitdiffstats
path: root/src/recur.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-03-10 15:54:24 +0000
committerFrederic Culot <calcurse@culot.org>2007-03-10 15:54:24 +0000
commitf82590c811bcff3f760063859d855865ec083a49 (patch)
tree832f413d9b32894ec68e01ef2b585b0a2d4e67e3 /src/recur.c
parentb1d02bf4ff30bc33645ae5f436afcbec6640efda (diff)
downloadcalcurse-f82590c811bcff3f760063859d855865ec083a49.tar.gz
calcurse-f82590c811bcff3f760063859d855865ec083a49.zip
global variable 'colr' suppressed
Diffstat (limited to 'src/recur.c')
-rwxr-xr-xsrc/recur.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/recur.c b/src/recur.c
index c23899f..d985fc7 100755
--- a/src/recur.c
+++ b/src/recur.c
@@ -1,4 +1,4 @@
-/* $calcurse: recur.c,v 1.21 2007/02/25 19:31:08 culot Exp $ */
+/* $calcurse: recur.c,v 1.22 2007/03/10 15:55:25 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -520,8 +520,10 @@ void recur_apoint_erase(long start, unsigned num, unsigned delete_whole)
* o repetition end date
* and then delete the selected item to recreate it as a recurrent one
*/
-void recur_repeat_item(int sel_year, int sel_month, int sel_day,
- int item_nb, int colr) {
+void
+recur_repeat_item(int sel_year, int sel_month, int sel_day,
+ int item_nb)
+{
struct tm *lt;
time_t t;
int ch = 0;
@@ -572,8 +574,8 @@ void recur_repeat_item(int sel_year, int sel_month, int sel_day,
while (freq == 0) {
status_mesg(mesg_freq_1, "");
- if (getstring(swin, colr, user_input, MAX_LENGTH, 0, 1) ==
- GETSTRING_VALID) {
+ if (getstring(swin, user_input, MAX_LENGTH, 0, 1) ==
+ GETSTRING_VALID) {
freq = atoi(user_input);
if (freq == 0) {
status_mesg(mesg_wrong_freq, wrong_type_2);
@@ -586,8 +588,7 @@ void recur_repeat_item(int sel_year, int sel_month, int sel_day,
while (!date_entered) {
status_mesg(mesg_until_1, "");
- if (getstring(swin, colr, user_input, 11, 0, 1) ==
- GETSTRING_VALID) {
+ if (getstring(swin, user_input, 11, 0, 1) == GETSTRING_VALID) {
if (strlen(user_input) == 1 &&
strncmp(user_input, "0", 1) == 0 ) {
until = 0;