From 6d51c042cb95a7f88a5c5b8787a1334c375af035 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 20 May 2002 14:29:59 +0000 Subject: [PATCH] * commands.c: fixed bug in the scan for idle_threshold= which didn't include the = sign and ended up always setting this value to 0 --- citadel/ChangeLog | 5 ++++- citadel/citadel_decls.h | 2 +- citadel/commands.c | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index d8d61fec7..2cea16d48 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,8 @@ $Log$ + Revision 591.29 2002/05/20 14:29:59 ajc + * commands.c: fixed bug in the scan for idle_threshold= which didn't include + the = sign and ended up always setting this value to 0 + Revision 591.28 2002/05/17 03:57:30 ajc * When doing fixed_output() of converted HTML, output the whole block of data at once instead of one character at a time @@ -3668,4 +3672,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import - diff --git a/citadel/citadel_decls.h b/citadel/citadel_decls.h index ac29dcaf9..005d6ac0e 100644 --- a/citadel/citadel_decls.h +++ b/citadel/citadel_decls.h @@ -13,7 +13,7 @@ extern char have_xterm; extern char rc_username[32]; extern char rc_password[32]; extern char rc_floor_mode; -extern int rc_idle_threshold; +extern time_t rc_idle_threshold; #ifdef HAVE_OPENSSL extern char rc_encrypt; /* from the citadel.rc file */ extern char arg_encrypt; /* from the command line */ diff --git a/citadel/commands.c b/citadel/commands.c index 1c56ce588..e101b9422 100644 --- a/citadel/commands.c +++ b/citadel/commands.c @@ -76,7 +76,7 @@ int rc_remember_passwords; int rc_ansi_color; int num_urls = 0; int rc_prompt_control = 0; -int rc_idle_threshold = 900; +time_t rc_idle_threshold = (time_t)900; char urls[MAXURLS][SIZ]; char rc_url_cmd[SIZ]; @@ -807,8 +807,8 @@ void load_command_set(void) if (!strncasecmp(buf, "allow_attachments=", 18)) { rc_allow_attachments = atoi(&buf[18]); } - if (!strncasecmp(buf, "idle_threshold=", 14)) { - rc_idle_threshold = atoi(&buf[14]); + if (!strncasecmp(buf, "idle_threshold=", 15)) { + rc_idle_threshold = atoi(&buf[15]); } if (!strncasecmp(buf, "remember_passwords=", 19)) { rc_remember_passwords = atoi(&buf[19]); -- 2.39.2