Commit c536c91e authored by Per Cederqvist's avatar Per Cederqvist
Browse files

POSIXized include files.

Replaced u_ with unsigned.
parent 91de42e4
/*
* $Id: cache-node.c,v 0.8 1993/01/16 23:16:06 ceder Exp $
* $Id: cache-node.c,v 0.9 1993/10/10 16:46:17 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,16 +28,16 @@
* Used in diskomd.
*/
static char *rcsid = "$Id: cache-node.c,v 0.8 1993/01/16 23:16:06 ceder Exp $";
static char *rcsid = "$Id: cache-node.c,v 0.9 1993/10/10 16:46:17 ceder Exp $";
#include "rcs.h"
USE(rcsid);
#include <stdio.h>
#include <kom-types.h>
#include "exp.h"
#include <stddef.h>
#include "cache-node.h"
#include <server/smalloc.h>
#include "exp.h"
#include "server/smalloc.h"
#include "lyskomd.h"
EXPORT const Cache_node EMPTY_CACHE_NODE =
......@@ -132,7 +132,7 @@ create_cache_node_mcb(int mcb_size,
/* +++ No check is done that it is initialized. */
EXPORT Cache_node *
get_cache_node (Cache_node_mcb *control,
u_long key)
unsigned long key)
{
if ( key >= control->lookup_table_size )
return NULL;
......@@ -162,7 +162,7 @@ alloc_cache_node (Cache_node_mcb *control)
EXPORT void
destruct_cache_node(Cache_node_mcb *control,
u_long key)
unsigned long key)
{
if ( key >= control->lookup_table_size )
return;
......@@ -172,12 +172,12 @@ destruct_cache_node(Cache_node_mcb *control,
EXPORT void
create_cache_node (Cache_node_mcb *control,
u_long key)
unsigned long key)
{
if ( key >= control->lookup_table_size )
restart_kom("ERROR: create_cache_node(%lu, %lu): "
"lookup_table_size = %lu\n",
(u_long) control, key,
(unsigned long) control, key,
control->lookup_table_size);
control->lookup_table[ key ] = alloc_cache_node(control);
......@@ -185,12 +185,12 @@ create_cache_node (Cache_node_mcb *control,
EXPORT void
zero_init_cache_node (Cache_node_mcb *control,
u_long key)
unsigned long key)
{
if ( key >= control->lookup_table_size )
restart_kom("ERROR: zero_init_cache_node(%lu, %lu): "
"lookup_table_size = %lu\n",
(u_long)control, key,
(unsigned long)control, key,
control->lookup_table_size);
control->lookup_table[ key ] = NULL;
......@@ -200,7 +200,7 @@ zero_init_cache_node (Cache_node_mcb *control,
EXPORT void
set_mru(Cache_node_mcb *mcb,
u_long key)
unsigned long key)
{
Cache_node *node;
......
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