From: wessels <> Date: Sat, 25 Jan 1997 03:39:49 +0000 (+0000) Subject: remove extra time(NULL) X-Git-Tag: SQUID_3_0_PRE1~5168 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b9e6ff732f307a6ac0eef59f4beedbb3c28a9de0;p=thirdparty%2Fsquid.git remove extra time(NULL) --- diff --git a/src/client_side.cc b/src/client_side.cc index 0f5c17f810..9f805b39b8 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.84 1997/01/23 17:29:10 wessels Exp $ + * $Id: client_side.cc,v 1.85 1997/01/24 20:39:49 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -297,7 +297,6 @@ proxyAuthenticate(const char *headers) char *user = NULL; char *passwd = NULL; char *clear_userandpw = NULL; - time_t current_time; struct stat buf; int i; hash_link *hashr = NULL; @@ -326,9 +325,7 @@ proxyAuthenticate(const char *headers) * a cgi-bin script, etc. If so, reload a fresh copy into memory */ - current_time = time(NULL); - - if ((current_time - last_time) > CHECK_PROXY_FILE_TIME) { + if ((squid_curtime - last_time) > CHECK_PROXY_FILE_TIME) { debug(33, 5, "proxyAuthenticate: checking password file %s hasn't changed\n", Config.proxyAuthFile); if (stat(Config.proxyAuthFile, &buf) == 0) { @@ -381,7 +378,7 @@ proxyAuthenticate(const char *headers) return (dash_str); } } - last_time = current_time; + last_time = squid_curtime; hashr = hash_lookup(validated, sent_user); if (hashr == NULL) {