* commands.c: fixed bug in the scan for idle_threshold= which didn't include
authorArt Cancro <ajc@citadel.org>
Mon, 20 May 2002 14:29:59 +0000 (14:29 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 20 May 2002 14:29:59 +0000 (14:29 +0000)
  the = sign and ended up always setting this value to 0

citadel/ChangeLog
citadel/citadel_decls.h
citadel/commands.c

index d8d61fec726313fd6954eb104a0b321302aab2af..2cea16d48f4660d0188473b0d78e5b097386e98a 100644 (file)
@@ -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 <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
index ac29dcaf9e5d1d5818d73eedff1dc6408f385a1c..005d6ac0eb701c455b6606fbaf3042cbf94a42bc 100644 (file)
@@ -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 */
index 1c56ce58836c663d33298866ab9ed7d4e4d5d513..e101b9422a835f51e9e26b7d00a09793fe29049c 100644 (file)
@@ -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]);