Commit 4ef39fe8 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixade div. typos.

parent e9e58f91
......@@ -4,7 +4,7 @@
* Used in diskomd.
*/
static char *rcsid = "$Id: cache-node.c,v 0.5 1991/08/28 02:22:01 ceder Exp $";
static char *rcsid = "$Id: cache-node.c,v 0.6 1991/09/05 08:23:42 ceder Exp $";
#include <stdio.h>
......@@ -118,12 +118,11 @@ static Cache_node *
alloc_cache_node (Cache_node_mcb *control)
{
Cache_node *c;
Cache_node_block *new_block;
if ( control->last_block == NULL
|| control->last_block->next_free >= control->mcb_size )
{
Cache_node_block *new_block;
new_block = alloc_cache_node_block (control->mcb_size);
new_block->link = control->last_block;
control->last_block = new_block;
......@@ -150,8 +149,9 @@ create_cache_node (Cache_node_mcb *control,
u_long key)
{
if ( key >= control->lookup_table_size )
restart_kom("ERROR: set_cache_node(%lu, %lu, value): "
restart_kom("ERROR: create_cache_node(%lu, %lu): "
"lookup_table_size = %lu\n",
(u_long) control, key,
control->lookup_table_size);
control->lookup_table[ key ] = alloc_cache_node(control);
......@@ -162,8 +162,9 @@ zero_init_cache_node (Cache_node_mcb *control,
u_long key)
{
if ( key >= control->lookup_table_size )
restart_kom("ERROR: set_cache_node(%lu, %lu, value): "
restart_kom("ERROR: zero_init_cache_node(%lu, %lu): "
"lookup_table_size = %lu\n",
(u_long)control, key,
control->lookup_table_size);
control->lookup_table[ key ] = NULL;
......@@ -185,6 +186,7 @@ set_mru(Cache_node_mcb *mcb,
unlink_lru(node, &mcb->lru, &mcb->mru);
insert_mru(node, &mcb->lru, &mcb->mru);
}
static void
free_cache_node_block (Cache_node_block *block)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment