From: wessels <> Date: Tue, 29 Sep 1998 07:32:58 +0000 (+0000) Subject: neighborType() needs to be global X-Git-Tag: SQUID_3_0_PRE1~2624 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=701a857247e1fcd07a6bc0ae518b5e572f99afb6;p=thirdparty%2Fsquid.git neighborType() needs to be global --- diff --git a/src/disk.cc b/src/disk.cc index 4a3c818b65..bf66c63f6a 100644 --- a/src/disk.cc +++ b/src/disk.cc @@ -1,7 +1,7 @@ /* - * $Id: disk.cc,v 1.135 1998/09/23 15:36:49 wessels Exp $ + * $Id: disk.cc,v 1.136 1998/09/29 01:32:58 wessels Exp $ * * DEBUG: section 6 Disk I/O Routines * AUTHOR: Harvest Derived @@ -94,7 +94,7 @@ static void fileOpenComplete(int unused, void *data, int fd, int errcode) { open_ctrl_t *ctrlp = (open_ctrl_t *) data; - debug(6, 5) ("fileOpenComplete: fd %d, data %p, errcode %d\n", + debug(6, 5) ("fileOpenComplete: FD %d, data %p, errcode %d\n", fd, data, errcode); Counter.syscalls.disk.opens++; if (fd == -2 && errcode == -2) { /* Cancelled - clean up */ diff --git a/src/neighbors.cc b/src/neighbors.cc index fc4d05ad6d..9e1340693b 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,6 +1,6 @@ /* - * $Id: neighbors.cc,v 1.254 1998/09/25 05:35:31 wessels Exp $ + * $Id: neighbors.cc,v 1.255 1998/09/29 01:32:59 wessels Exp $ * * DEBUG: section 15 Neighbor Routines * AUTHOR: Harvest Derived @@ -97,7 +97,7 @@ whichPeer(const struct sockaddr_in * from) return NULL; } -static peer_t +peer_t neighborType(const peer * p, const request_t * request) { const struct _domain_type *d = NULL; diff --git a/src/protos.h b/src/protos.h index 186e4bdcd5..e01d322d09 100644 --- a/src/protos.h +++ b/src/protos.h @@ -1,6 +1,6 @@ /* - * $Id: protos.h,v 1.272 1998/09/24 20:42:09 rousskov Exp $ + * $Id: protos.h,v 1.273 1998/09/29 01:33:00 wessels Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -583,6 +583,7 @@ extern void peerNoteDigestLookup(request_t * request, peer * p, lookup_t lookup) extern int neighborUp(const peer * e); extern void peerDestroy(peer * e); extern char *neighborTypeStr(const peer * e); +extern peer_t neighborType(const peer *, const request_t *); extern void peerCheckConnectStart(peer *); extern void dump_peer_options(StoreEntry *, peer *); extern int peerHTTPOkay(const peer *, request_t *);