]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
simplify loop_delay use
authorrobertc <>
Thu, 2 Jan 2003 15:44:17 +0000 (15:44 +0000)
committerrobertc <>
Thu, 2 Jan 2003 15:44:17 +0000 (15:44 +0000)
src/main.cc

index 2419655ddc33f075095e7e8d2433f797fb4820ae..a8f1f1030e6ce9e69aeebcee9170a42c7c3c9de1 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.359 2002/11/15 13:29:20 hno Exp $
+ * $Id: main.cc,v 1.360 2003/01/02 08:44:17 robertc Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -563,7 +563,6 @@ main(int argc, char **argv)
 {
     int errcount = 0;
     int n;                     /* # of GC'd objects */
-    int loop_delay;
     mode_t oldmask;
 #if defined(_SQUID_MSWIN_) || defined(_SQUID_CYGWIN_)
     int WIN32_init_err;
@@ -716,7 +715,8 @@ main(int argc, char **argv)
            eventAdd("SquidShutdown", SquidShutdown, NULL, (double) (wait + 1), 1);
        }
        eventRun();
-       if ((loop_delay = eventNextTime()) < 0)
+        int loop_delay = eventNextTime();
+       if (loop_delay < 0)
            loop_delay = 0;
         /* Attempt any pending storedir IO */
         storeDirCallback();