]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
format fixes
authorhno <>
Wed, 24 Oct 2001 12:55:43 +0000 (12:55 +0000)
committerhno <>
Wed, 24 Oct 2001 12:55:43 +0000 (12:55 +0000)
14 files changed:
src/access_log.cc
src/acl.cc
src/asn.cc
src/authenticate.cc
src/client_side.cc
src/comm_select.cc
src/fs/ufs/store_dir_ufs.cc
src/fs/ufs/store_io_ufs.cc
src/main.cc
src/peer_digest.cc
src/ssl_support.cc
src/stat.cc
src/store_client.cc
src/store_digest.cc

index 959ffb6d3ce8cfc9182266ab0019bb9a68ebbf88..72a9fab3833337e5f6440b538a6dc3e49e42b835 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: access_log.cc,v 1.71 2001/10/17 12:41:49 hno Exp $
+ * $Id: access_log.cc,v 1.72 2001/10/24 06:55:43 hno Exp $
  *
  * DEBUG: section 46    Access Log
  * AUTHOR: Duane Wessels
@@ -242,14 +242,14 @@ accessLogSquid(AccessLogEntry * al)
        client = inet_ntoa(al->cache.caddr);
     user = accessLogFormatName(al->cache.authuser ?
        al->cache.authuser : al->cache.rfc931);
-    logfilePrintf(logfile, "%9d.%03d %6d %s %s/%03d %d %s %s %s %s%s/%s %s",
+    logfilePrintf(logfile, "%9d.%03d %6d %s %s/%03d %ld %s %s %s %s%s/%s %s",
        (int) current_time.tv_sec,
        (int) current_time.tv_usec / 1000,
        al->cache.msec,
        client,
        log_tags[al->cache.code],
        al->http.code,
-       al->cache.size,
+       (long int) al->cache.size,
        al->private.method_str,
        al->url,
        user ? user : dash_str,
@@ -271,7 +271,7 @@ accessLogCommon(AccessLogEntry * al)
        client = inet_ntoa(al->cache.caddr);
     user1 = accessLogFormatName(al->cache.authuser);
     user2 = accessLogFormatName(al->cache.rfc931);
-    logfilePrintf(logfile, "%s %s %s [%s] \"%s %s HTTP/%d.%d\" %d %d %s:%s",
+    logfilePrintf(logfile, "%s %s %s [%s] \"%s %s HTTP/%d.%d\" %d %ld %s:%s",
        client,
        user2 ? user2 : dash_str,
        user1 ? user1 : dash_str,
@@ -280,7 +280,7 @@ accessLogCommon(AccessLogEntry * al)
        al->url,
        al->http.version.major, al->http.version.minor,
        al->http.code,
-       al->cache.size,
+       (long int) al->cache.size,
        log_tags[al->cache.code],
        hier_strings[al->hier.code]);
     safe_free(user1);
index 7989debb19a9af04e47caf4644d783d965766ef5..003e5457907a585ee5ed86deafcaa66d70c79aa6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: acl.cc,v 1.267 2001/10/24 05:46:26 hno Exp $
+ * $Id: acl.cc,v 1.268 2001/10/24 06:55:43 hno Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -1102,7 +1102,7 @@ aclMatchUser(void *proxyauth_acl, char *user)
     debug(28, 7) ("aclMatchUser: user is %s, case_insensitive is %d\n",
        user, data->flags.case_insensitive);
     debug(28, 8) ("Top is %p, Top->data is %s\n", Top,
-       (char *)(Top != NULL ? (Top)->data : "Unavailable"));
+       (char *) (Top != NULL ? (Top)->data : "Unavailable"));
 
     if (user == NULL)
        return 0;
@@ -1117,7 +1117,7 @@ aclMatchUser(void *proxyauth_acl, char *user)
        Top = splay_splay(user, Top, (SPLAYCMP *) strcmp);
     /* Top=splay_splay(user,Top,(SPLAYCMP *)dumping_strcmp); */
     debug(28, 7) ("aclMatchUser: returning %d,Top is %p, Top->data is %s\n",
-       !splayLastResult, Top, (char *)(Top ? Top->data : "Unavailable"));
+       !splayLastResult, Top, (char *) (Top ? Top->data : "Unavailable"));
     data->names = Top;
     return !splayLastResult;
 }
@@ -1241,7 +1241,7 @@ aclParseUserMaxIP(void *data)
            (*acldata)->flags.strict = 1;
        } else {
            (*acldata)->max = atoi(t);
-           debug(28, 5) ("aclParseUserMaxIP: Max IP address's %d\n", (*acldata)->max);
+           debug(28, 5) ("aclParseUserMaxIP: Max IP address's %d\n", (int) (*acldata)->max);
        }
     } else
        fatal("aclParseUserMaxIP: Malformed ACL %d\n");
@@ -1264,7 +1264,7 @@ aclDumpUserMaxIP(void *data)
     char buf[128];
     if (acldata->flags.strict)
        wordlistAdd(&W, "-s");
-    snprintf(buf, sizeof(buf), "%lu", (unsigned long int)acldata->max);
+    snprintf(buf, sizeof(buf), "%lu", (unsigned long int) acldata->max);
     wordlistAdd(&W, buf);
     return W;
 }
@@ -2194,7 +2194,7 @@ aclDomainCompare(const void *a, const void *b)
     }
     if (ret == 0) {
        debug(28, 0) ("WARNING: '%s' is a subdomain of '%s'\n", d1, d2);
-       debug(28, 0) ("WARNING: because of this '%s' is ignored to keep splay tree searching predictable\n", (char *)a);
+       debug(28, 0) ("WARNING: because of this '%s' is ignored to keep splay tree searching predictable\n", (char *) a);
        debug(28, 0) ("WARNING: You should probably remove '%s' from the ACL named '%s'\n", d1, AclMatchedName);
     }
     return ret;
index d562fab8e4de0aa0c755342d9ad79fe776159ad7..5b824a65171b032f14d18b02643a83603dcdbdad 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: asn.cc,v 1.75 2001/10/24 05:46:26 hno Exp $
+ * $Id: asn.cc,v 1.76 2001/10/24 06:55:44 hno Exp $
  *
  * DEBUG: section 53    AS Number handling
  * AUTHOR: Duane Wessels, Kostas Anagnostakis
@@ -265,7 +265,7 @@ asHandleReply(void *data, char *buf, ssize_t size)
     asState->seen = asState->offset + size;
     asState->offset += (s - buf);
     debug(53, 3) ("asState->seen = %ld, asState->offset = %ld\n",
-       (long int)asState->seen, (long int)asState->offset);
+       (long int) asState->seen, (long int) asState->offset);
     if (e->store_status == STORE_PENDING) {
        debug(53, 3) ("asHandleReply: store_status == STORE_PENDING: %s\n", storeUrl(e));
        storeClientCopy(asState->sc,
index d9681d65d39844916a98190019697cbc7f370992..f93f1005fa47e96fd1804810c0272398a7cb3702 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: authenticate.cc,v 1.32 2001/10/24 05:46:26 hno Exp $
+ * $Id: authenticate.cc,v 1.33 2001/10/24 06:55:44 hno Exp $
  *
  * DEBUG: section 29    Authenticator
  * AUTHOR: Duane Wessels
@@ -883,7 +883,7 @@ authenticateProxyUserCacheCleanup(void *datanotused)
     auth_user_t *auth_user;
     char *username = NULL;
     debug(29, 3) ("authenticateProxyUserCacheCleanup: Cleaning the user cache now\n");
-    debug(29, 3) ("authenticateProxyUserCacheCleanup: Current time: %ld\n", (long int)current_time.tv_sec);
+    debug(29, 3) ("authenticateProxyUserCacheCleanup: Current time: %ld\n", (long int) current_time.tv_sec);
     hash_first(proxy_auth_username_cache);
     while ((usernamehash = ((auth_user_hash_pointer *) hash_next(proxy_auth_username_cache)))) {
        auth_user = usernamehash->auth_user;
@@ -891,7 +891,7 @@ authenticateProxyUserCacheCleanup(void *datanotused)
 
        /* if we need to have inpedendent expiry clauses, insert a module call
         * here */
-       debug(29, 4) ("authenticateProxyUserCacheCleanup: Cache entry:\n\tType: %d\n\tUsername: %s\n\texpires: %ld\n\treferences: %d\n", auth_user->auth_type, username, (long int)(auth_user->expiretime + Config.authenticateTTL), auth_user->references);
+       debug(29, 4) ("authenticateProxyUserCacheCleanup: Cache entry:\n\tType: %d\n\tUsername: %s\n\texpires: %ld\n\treferences: %d\n", auth_user->auth_type, username, (long int) (auth_user->expiretime + Config.authenticateTTL), auth_user->references);
        if (auth_user->expiretime + Config.authenticateTTL <= current_time.tv_sec) {
            debug(29, 5) ("authenticateProxyUserCacheCleanup: Removing user %s from cache due to timeout.\n", username);
            /* the minus 1 accounts for the cache lock */
index ab5c3cad983ec64c69a32302e5855bb88a503caa..c257b98a9b6a4538b39f48229ec5fe542b002185 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.553 2001/10/24 05:46:27 hno Exp $
+ * $Id: client_side.cc,v 1.554 2001/10/24 06:55:44 hno Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2978,7 +2978,7 @@ clientReadBody(request_t * request, char *buf, size_t size, CBCB * callback, voi
        callback(buf, 0, cbdata);       /* Signal end of body */
        return;
     }
-    debug(33, 2) ("clientReadBody: start fd=%d body_size=%lu in.offset=%ld cb=%p req=%p\n", conn->fd, (unsigned long int)conn->body.size_left, (long int)conn->in.offset, callback, request);
+    debug(33, 2) ("clientReadBody: start fd=%d body_size=%lu in.offset=%ld cb=%p req=%p\n", conn->fd, (unsigned long int) conn->body.size_left, (long int) conn->in.offset, callback, request);
     conn->body.callback = callback;
     conn->body.cbdata = cbdata;
     conn->body.buf = buf;
@@ -2997,7 +2997,7 @@ clientProcessBody(ConnStateData * conn)
     CBCB *callback = conn->body.callback;
     request_t *request = conn->body.request;
     /* Note: request is null while eating "aborted" transfers */
-    debug(33, 2) ("clientProcessBody: start fd=%d body_size=%lu in.offset=%ld cb=%p req=%p\n", conn->fd, (unsigned long int)conn->body.size_left, (long int)conn->in.offset, callback, request);
+    debug(33, 2) ("clientProcessBody: start fd=%d body_size=%lu in.offset=%ld cb=%p req=%p\n", conn->fd, (unsigned long int) conn->body.size_left, (long int) conn->in.offset, callback, request);
     if (conn->in.offset) {
        /* Some sanity checks... */
        assert(conn->body.size_left > 0);
@@ -3032,7 +3032,7 @@ clientProcessBody(ConnStateData * conn)
        callback(buf, size, cbdata);
        if (request != NULL)
            requestUnlink(request);     /* Linked in clientReadBody */
-       debug(33, 2) ("clientProcessBody: end fd=%d size=%d body_size=%lu in.offset=%ld cb=%p req=%p\n", conn->fd, size, (unsigned long int)conn->body.size_left, (long int)conn->in.offset, callback, request);
+       debug(33, 2) ("clientProcessBody: end fd=%d size=%d body_size=%lu in.offset=%ld cb=%p req=%p\n", conn->fd, size, (unsigned long int) conn->body.size_left, (long int) conn->in.offset, callback, request);
     }
 }
 
@@ -3042,7 +3042,7 @@ static void
 clientReadBodyAbortHandler(char *buf, size_t size, void *data)
 {
     ConnStateData *conn = (ConnStateData *) data;
-    debug(33, 2) ("clientReadBodyAbortHandler: fd=%d body_size=%lu in.offset=%ld\n", conn->fd, (unsigned long int)conn->body.size_left, (long int)conn->in.offset);
+    debug(33, 2) ("clientReadBodyAbortHandler: fd=%d body_size=%lu in.offset=%ld\n", conn->fd, (unsigned long int) conn->body.size_left, (long int) conn->in.offset);
     if (size != 0 && conn->body.size_left != 0) {
        debug(33, 3) ("clientReadBodyAbortHandler: fd=%d shedule next read\n", conn->fd);
        conn->body.callback = clientReadBodyAbortHandler;
index c7861f2f5d7dc8935338850605daf98b03d7b56e..d21884eaa638bc734fbfa5218549abec80b49af5 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm_select.cc,v 1.52 2001/10/24 06:16:16 hno Exp $
+ * $Id: comm_select.cc,v 1.53 2001/10/24 06:55:44 hno Exp $
  *
  * DEBUG: section 5     Socket Functions
  *
@@ -521,7 +521,7 @@ comm_poll(int msec)
        return COMM_OK;
     }
     while (timeout > current_dtime);
-    debug(5, 8) ("comm_poll: time out: %ld.\n", (long int)squid_curtime);
+    debug(5, 8) ("comm_poll: time out: %ld.\n", (long int) squid_curtime);
     return COMM_TIMEOUT;
 }
 
index f8cd0fafdde62bedc33aed3cc0d5891f137ce05c..4b552466d1a0d499a7d484a6388903b769620ebc 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_ufs.cc,v 1.36 2001/10/17 13:43:06 hno Exp $
+ * $Id: store_dir_ufs.cc,v 1.37 2001/10/24 06:55:45 hno Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -470,8 +470,8 @@ storeUfsDirRebuildFromDirectory(void *data)
        } else if (tmpe.swap_file_sz == sb.st_size - swap_hdr_len) {
            tmpe.swap_file_sz = sb.st_size;
        } else if (tmpe.swap_file_sz != sb.st_size) {
-           debug(20, 1) ("storeUfsDirRebuildFromDirectory: SIZE MISMATCH %d!=%d\n",
-               tmpe.swap_file_sz, (int) sb.st_size);
+           debug(20, 1) ("storeUfsDirRebuildFromDirectory: SIZE MISMATCH %ld!=%ld\n",
+               (long int)tmpe.swap_file_sz, (long int) sb.st_size);
            storeUfsDirUnlinkFile(SD, filn);
            continue;
        }
@@ -1587,8 +1587,8 @@ storeUfsCleanupDoubleCheck(SwapDir * sd, StoreEntry * e)
        debug(20, 0) ("storeUfsCleanupDoubleCheck: FILENO %08X\n", e->swap_filen);
        debug(20, 0) ("storeUfsCleanupDoubleCheck: PATH %s\n",
            storeUfsDirFullPath(sd, e->swap_filen, NULL));
-       debug(20, 0) ("storeUfsCleanupDoubleCheck: ENTRY SIZE: %d, FILE SIZE: %d\n",
-           e->swap_file_sz, (int) sb.st_size);
+       debug(20, 0) ("storeUfsCleanupDoubleCheck: ENTRY SIZE: %ld, FILE SIZE: %ld\n",
+           (long int)e->swap_file_sz, (long int) sb.st_size);
        storeEntryDump(e, 0);
        return -1;
     }
index 9734d3b540f93d163cfe1f52f5283f95043442cf..704316cb1387114c8489cc1027e2ea77288b7df6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_io_ufs.cc,v 1.7 2001/03/03 10:39:39 hno Exp $
+ * $Id: store_io_ufs.cc,v 1.8 2001/10/24 06:55:45 hno Exp $
  *
  * DEBUG: section 79    Storage Manager UFS Interface
  * AUTHOR: Duane Wessels
@@ -227,8 +227,8 @@ storeUfsWriteDone(int fd, int errflag, size_t len, void *my_data)
 {
     storeIOState *sio = my_data;
     ufsstate_t *ufsstate = (ufsstate_t *) sio->fsstate;
-    debug(79, 3) ("storeUfsWriteDone: dirno %d, fileno %08X, FD %d, len %d\n",
-       sio->swap_dirn, sio->swap_filen, fd, len);
+    debug(79, 3) ("storeUfsWriteDone: dirno %d, fileno %08X, FD %d, len %ld\n",
+       sio->swap_dirn, sio->swap_filen, fd, (long int)len);
     ufsstate->flags.writing = 0;
     if (errflag) {
        debug(79, 0) ("storeUfsWriteDone: got failure (%d)\n", errflag);
index 36004580d51687618cc70a932658faafd73c0ece..09a36155210a47ca4999062445a00eb1385b6c4b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.344 2001/10/24 06:16:16 hno Exp $
+ * $Id: main.cc,v 1.345 2001/10/24 06:55:44 hno Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -705,7 +705,7 @@ main(int argc, char **argv)
            debug(1, 1) ("Preparing for shutdown after %d requests\n",
                statCounter.client_http.requests);
            debug(1, 1) ("Waiting %d seconds for active connections to finish\n",
-               (int)wait);
+               (int) wait);
            do_shutdown = 0;
            shutting_down = 1;
            serverConnectionsClose();
index 464b184cac5e3221d63d1f9d80f52437a4e08699..305b5b6bed29b486f704e613c4255e9349a09c38 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: peer_digest.cc,v 1.82 2001/10/24 06:16:17 hno Exp $
+ * $Id: peer_digest.cc,v 1.83 2001/10/24 06:55:44 hno Exp $
  *
  * DEBUG: section 72    Peer Digest Routines
  * AUTHOR: Alex Rousskov
@@ -193,7 +193,7 @@ peerDigestSetCheck(PeerDigest * pd, time_t delay)
     eventAdd("peerDigestCheck", peerDigestCheck, pd, (double) delay, 1);
     pd->times.next_check = squid_curtime + delay;
     debug(72, 3) ("peerDigestSetCheck: will check peer %s in %d secs\n",
-       strBuf(pd->host), (int)delay);
+       strBuf(pd->host), (int) delay);
 }
 
 /*
@@ -236,7 +236,7 @@ peerDigestCheck(void *data)
     }
     debug(72, 3) ("peerDigestCheck: peer %s:%d\n", pd->peer->host, pd->peer->http_port);
     debug(72, 3) ("peerDigestCheck: time: %ld, last received: %ld (%+d)\n",
-       (long int)squid_curtime, (long int)pd->times.received, (int)(squid_curtime - pd->times.received));
+       (long int) squid_curtime, (long int) pd->times.received, (int) (squid_curtime - pd->times.received));
 
     /* decide when we should send the request:
      * request now unless too close to other requests */
@@ -245,15 +245,15 @@ peerDigestCheck(void *data)
     /* per-peer limit */
     if (req_time - pd->times.received < PeerDigestReqMinGap) {
        debug(72, 2) ("peerDigestCheck: %s, avoiding close peer requests (%d < %d secs).\n",
-           strBuf(pd->host), (int)(req_time - pd->times.received),
-           (int)PeerDigestReqMinGap);
+           strBuf(pd->host), (int) (req_time - pd->times.received),
+           (int) PeerDigestReqMinGap);
        req_time = pd->times.received + PeerDigestReqMinGap;
     }
     /* global limit */
     if (req_time - pd_last_req_time < GlobDigestReqMinGap) {
        debug(72, 2) ("peerDigestCheck: %s, avoiding close requests (%d < %d secs).\n",
-           strBuf(pd->host), (int)(req_time - pd_last_req_time),
-           (int)GlobDigestReqMinGap);
+           strBuf(pd->host), (int) (req_time - pd_last_req_time),
+           (int) GlobDigestReqMinGap);
        req_time = pd_last_req_time + GlobDigestReqMinGap;
     }
     if (req_time <= squid_curtime)
@@ -355,7 +355,7 @@ peerDigestFetchReply(void *data, char *buf, ssize_t size)
        status = reply->sline.status;
        debug(72, 3) ("peerDigestFetchReply: %s status: %d, expires: %ld (%+d)\n",
            strBuf(pd->host), status,
-           (long int)reply->expires, (int)(reply->expires - squid_curtime));
+           (long int) reply->expires, (int) (reply->expires - squid_curtime));
 
        /* this "if" is based on clientHandleIMSReply() */
        if (status == HTTP_NOT_MODIFIED) {
@@ -730,10 +730,10 @@ peerDigestFetchSetStats(DigestFetchState * fetch)
     fetch->resp_time = squid_curtime - fetch->start_time;
 
     debug(72, 3) ("peerDigestFetchFinish: recv %d bytes in %d secs\n",
-       fetch->recv.bytes, (int)fetch->resp_time);
+       fetch->recv.bytes, (int) fetch->resp_time);
     debug(72, 3) ("peerDigestFetchFinish: expires: %ld (%+d), lmt: %ld (%+d)\n",
-       (long int)fetch->expires, (int)(fetch->expires - squid_curtime),
-       (long int)fetch->entry->lastmod, (int)(fetch->entry->lastmod - squid_curtime));
+       (long int) fetch->expires, (int) (fetch->expires - squid_curtime),
+       (long int) fetch->entry->lastmod, (int) (fetch->entry->lastmod - squid_curtime));
 }
 
 
@@ -858,9 +858,9 @@ peerDigestStatsReport(const PeerDigest * pd, StoreEntry * e)
     storeAppendPrintf(e, "\tneeded: %3s, usable: %3s, requested: %3s\n",
        f2s(needed), f2s(usable), f2s(requested));
     storeAppendPrintf(e, "\n\tlast retry delay: %d secs\n",
-       (int)pd->times.retry_delay);
+       (int) pd->times.retry_delay);
     storeAppendPrintf(e, "\tlast request response time: %d secs\n",
-       (int)pd->times.req_delay);
+       (int) pd->times.req_delay);
     storeAppendPrintf(e, "\tlast request result: %s\n",
        pd->req_result ? pd->req_result : "(none)");
 
index f9c9ee66ed0dbae32e4e7106f44efc6c9c39d2de..2304f4086c0d1cb4d12e20c2195ab29f40a7311a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ssl_support.cc,v 1.4 2001/10/19 22:34:49 hno Exp $
+ * $Id: ssl_support.cc,v 1.5 2001/10/24 06:55:44 hno Exp $
  *
  * AUTHOR: Benno Rice
  * DEBUG: section 81     SSL accelerator support
@@ -162,7 +162,7 @@ static struct ssl_option {
     }
 };
 
-static long 
+static long
 ssl_parse_options(const char *options)
 {
     long op = SSL_OP_ALL;
index 53049f150bd2ad76a1b8a95ce48f33a0221a436e..a86c3f432a6212b32a4a425e70f89206a645054b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: stat.cc,v 1.349 2001/10/24 06:16:17 hno Exp $
+ * $Id: stat.cc,v 1.350 2001/10/24 06:55:44 hno Exp $
  *
  * DEBUG: section 18    Cache Manager Statistics
  * AUTHOR: Harvest Derived
@@ -1410,7 +1410,7 @@ statClientRequests(StoreEntry * s)
                fd_table[fd].bytes_read, fd_table[fd].bytes_written);
            storeAppendPrintf(s, "\tFD desc: %s\n", fd_table[fd].desc);
            storeAppendPrintf(s, "\tin: buf %p, offset %ld, size %ld\n",
-               conn->in.buf, (long int)conn->in.offset, (long int)conn->in.size);
+               conn->in.buf, (long int) conn->in.offset, (long int) conn->in.size);
            storeAppendPrintf(s, "\tpeer: %s:%d\n",
                inet_ntoa(conn->peer.sin_addr),
                ntohs(conn->peer.sin_port));
@@ -1420,20 +1420,20 @@ statClientRequests(StoreEntry * s)
            storeAppendPrintf(s, "\tnrequests: %d\n",
                conn->nrequests);
            storeAppendPrintf(s, "\tdefer: n %d, until %ld\n",
-               conn->defer.n, (long int)conn->defer.until);
+               conn->defer.n, (long int) conn->defer.until);
        }
        storeAppendPrintf(s, "uri %s\n", http->uri);
        storeAppendPrintf(s, "log_type %s\n", log_tags[http->log_type]);
        storeAppendPrintf(s, "out.offset %ld, out.size %lu\n",
-           (long int)http->out.offset, (unsigned long int)http->out.size);
+           (long int) http->out.offset, (unsigned long int) http->out.size);
        storeAppendPrintf(s, "req_sz %d\n", http->req_sz);
        e = http->entry;
        storeAppendPrintf(s, "entry %p/%s\n", e, e ? storeKeyText(e->hash.key) : "N/A");
        e = http->old_entry;
        storeAppendPrintf(s, "old_entry %p/%s\n", e, e ? storeKeyText(e->hash.key) : "N/A");
        storeAppendPrintf(s, "start %ld.%06d (%f seconds ago)\n",
-           (long int)http->start.tv_sec,
-           (int)http->start.tv_usec,
+           (long int) http->start.tv_sec,
+           (int) http->start.tv_usec,
            tvSubDsec(http->start, current_time));
        storeAppendPrintf(s, "\n");
     }
index f3c91878e993ede9cdeacd3328eea1f274ea2e07..5e73656ba32a717fd755c47e97a649536c54f601 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_client.cc,v 1.103 2001/10/24 06:16:18 hno Exp $
+ * $Id: store_client.cc,v 1.104 2001/10/24 06:55:44 hno Exp $
  *
  * DEBUG: section 20    Storage Manager Client-Side Interface
  * AUTHOR: Duane Wessels
@@ -426,7 +426,7 @@ storeClientReadHeader(void *data, const char *buf, ssize_t len)
                (void) 0;       /* a match! */
            else {
                debug(20, 1) ("storeClientReadHeader: URL mismatch\n");
-               debug(20, 1) ("\t{%s} != {%s}\n", (char *)t->value, mem->url);
+               debug(20, 1) ("\t{%s} != {%s}\n", (char *) t->value, mem->url);
                swap_object_ok = 0;
                break;
            }
index 2ed444975240108c78049fb482dca0f7b6d1b68b..5be36bc8792698e8d15e01abd95d20aebfef98f5 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_digest.cc,v 1.50 2001/10/24 06:16:18 hno Exp $
+ * $Id: store_digest.cc,v 1.51 2001/10/24 06:55:44 hno Exp $
  *
  * DEBUG: section 71    Store Digest Manager
  * AUTHOR: Alex Rousskov
@@ -104,7 +104,7 @@ storeDigestInit(void)
     }
     store_digest = cacheDigestCreate(cap, Config.digest.bits_per_entry);
     debug(71, 1) ("Local cache digest enabled; rebuild/rewrite every %d/%d sec\n",
-       (int)Config.digest.rebuild_period, (int)Config.digest.rewrite_period);
+       (int) Config.digest.rebuild_period, (int) Config.digest.rewrite_period);
     memset(&sd_state, 0, sizeof(sd_state));
     cachemgrRegister("store_digest", "Store Digest",
        storeDigestReport, 0, 1);
@@ -219,7 +219,7 @@ storeDigestAddable(const StoreEntry * e)
     /* Note: We should use the time of the next rebuild, not (cur_time+period) */
     if (refreshCheckDigest(e, Config.digest.rebuild_period)) {
        debug(71, 6) ("storeDigestAdd: entry expires within %d secs, ignoring\n",
-           (int)Config.digest.rebuild_period);
+           (int) Config.digest.rebuild_period);
        return 0;
     }
     /*
@@ -384,7 +384,7 @@ storeDigestRewriteResume(void)
        "application/cache-digest", store_digest->mask_size + sizeof(sd_state.cblock),
        squid_curtime, squid_curtime + Config.digest.rewrite_period);
     debug(71, 3) ("storeDigestRewrite: entry expires on %ld (%+d)\n",
-       (long int)e->mem_obj->reply->expires, (int)(e->mem_obj->reply->expires - squid_curtime));
+       (long int) e->mem_obj->reply->expires, (int) (e->mem_obj->reply->expires - squid_curtime));
     storeBuffer(e);
     httpReplySwapOut(e->mem_obj->reply, e);
     storeDigestCBlockSwapOut(e);
@@ -400,7 +400,7 @@ storeDigestRewriteFinish(StoreEntry * e)
     storeComplete(e);
     storeTimestampsSet(e);
     debug(71, 2) ("storeDigestRewriteFinish: digest expires at %ld (%+d)\n",
-       (long int)e->expires, (int)(e->expires - squid_curtime));
+       (long int) e->expires, (int) (e->expires - squid_curtime));
     /* is this the write order? @?@ */
     requestUnlink(e->mem_obj->request);
     e->mem_obj->request = NULL;