/*
- * $Id: disk.cc,v 1.84 1997/10/23 23:20:19 wessels Exp $
+ * $Id: disk.cc,v 1.85 1997/10/23 23:27:18 wessels Exp $
*
* DEBUG: section 6 Disk I/O Routines
* AUTHOR: Harvest Derived
rc = DISK_EOF;
}
if (cbdataValid(ctrl_dat->client_data))
- ctrl_dat->handler(fd, ctrl_dat->buf, len, rc, ctrl_dat->client_data);
+ ctrl_dat->handler(fd, ctrl_dat->buf, len, rc, ctrl_dat->client_data);
cbdataUnlock(ctrl_dat->client_data);
safe_free(ctrl_dat);
}
/*
- * $Id: http.cc,v 1.197 1997/10/23 23:22:15 wessels Exp $
+ * $Id: http.cc,v 1.198 1997/10/23 23:27:19 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
httpState->eof = 1;
if (httpState->reply_hdr_state < 2)
httpProcessReplyHeader(httpState, buf, len);
- /* storeAppend(entry, buf, len); /* invoke handlers! */
+ /* storeAppend(entry, buf, len); /* invoke handlers! */
storeComplete(entry); /* deallocates mem_obj->request */
comm_close(fd);
} else {
/*
- * $Id: store.cc,v 1.304 1997/10/23 23:26:45 wessels Exp $
+ * $Id: store.cc,v 1.305 1997/10/23 23:27:20 wessels Exp $
*
* DEBUG: section 20 Storeage Manager
* AUTHOR: Harvest Derived
static SIH storeClientCopyFileOpened;
static DRCB storeClientCopyHandleRead;
static FOCB storeSwapInFileOpened;
-static void storeClientCopyFileRead(store_client *sc);
+static void storeClientCopyFileRead(store_client * sc);
static void storeInMemAdd(StoreEntry * e);
static void storeInMemDelete(StoreEntry * e);
static void storeSetMemStatus(StoreEntry * e, int);
off_t lowest = mem->inmem_hi;
store_client *sc;
store_client *nx = NULL;
- for (sc = mem->clients; sc; sc=nx) {
+ for (sc = mem->clients; sc; sc = nx) {
nx = sc->next;
if (sc->callback_data == NULL) /* open slot */
continue;
assert(mem->clients != NULL || mem->nclients == 0);
debug(20, 3) ("InvokeHandlers: %s\n", e->key);
/* walk the entire list looking for valid callbacks */
- for (sc = mem->clients; sc; sc=nx) {
+ for (sc = mem->clients; sc; sc = nx) {
nx = sc->next;
debug(20, 3) ("InvokeHandlers: checking client #%d\n", i++);
if (sc->callback_data == NULL)
if (!BIT_TEST(e->flag, ENTRY_VALIDATED)) {
if (storeDirMapBitTest(e->swap_file_number)) {
/* someone took our file while we weren't looking */
- debug(0,0)("storeSwapInStart: someone took our file while we weren't looking\n");
- debug(0,0)("storeSwapInStart: for %s\n", e->url);
+ debug(0, 0) ("storeSwapInStart: someone took our file while we weren't looking\n");
+ debug(0, 0) ("storeSwapInStart: for %s\n", e->url);
callback(-1, callback_data);
return;
}
return;
mem->nclients++;
sc = xcalloc(1, sizeof(store_client));
- cbdataAdd(sc); /* sc is callback_data for file_read */
+ cbdataAdd(sc); /* sc is callback_data for file_read */
sc->callback_data = data;
sc->seen_offset = 0;
sc->copy_offset = 0;
}
static void
-storeClientCopyFileRead(store_client *sc)
+storeClientCopyFileRead(store_client * sc)
{
- assert (sc->callback != NULL);
+ assert(sc->callback != NULL);
file_read(sc->swapin_fd,
sc->copy_buf,
sc->copy_size,
int i;
if (mem == NULL)
return 0;
- for (sc = mem->clients; sc; sc=nx) {
+ for (sc = mem->clients; sc; sc = nx) {
nx = sc->next;
if (sc->callback_data == NULL)
continue;