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

(init_cache): Replaced i with ic and it to get rid of warnings when

	the wrong type was used.
parent 3c48b909
/*
* $Id: simple-cache.c,v 0.96 2002/03/29 22:38:02 ceder Exp $
* $Id: simple-cache.c,v 0.97 2002/09/06 22:43:08 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -2424,7 +2424,8 @@ setup_small_conf(Conf_no conf_no,
extern Success
init_cache(void)
{
long i;
Conf_no ic;
Text_no it;
Cache_node *node;
Conference tmp_conf;
Person tmp_pers;
......@@ -2460,17 +2461,17 @@ init_cache(void)
LOGACC(lt_restart, current_time);
for (i = 0; i < param.max_conf; i++)
small_conf_arr[i] = NULL;
for (ic = 0; ic < param.max_conf; ic++)
small_conf_arr[ic] = NULL;
for (i = 1; i < param.max_conf; i++)
zero_init_cache_node(pers_mcb, i);
for (ic = 1; ic < param.max_conf; ic++)
zero_init_cache_node(pers_mcb, ic);
for (i = 1; i < param.max_conf; i++)
zero_init_cache_node(conf_mcb, i);
for (ic = 1; ic < param.max_conf; ic++)
zero_init_cache_node(conf_mcb, ic);
for (i = 1; i < param.max_text; i++)
zero_init_cache_node(text_mcb, i);
for (it = 1; it < param.max_text; it++)
zero_init_cache_node(text_mcb, it);
......@@ -2552,7 +2553,7 @@ init_cache(void)
* Read conferences
*/
for ( i = 1; !done ; i++ ) /* CONFS */
for (ic = 1; !done ; ic++) /* CONFS */
{
fskipwhite(file_a);
switch(c = getc(file_a))
......@@ -2638,7 +2639,7 @@ init_cache(void)
{
restart_kom("ERROR: init_cache(), bad conf_no %ld"
" at record %ld\n",
num, i);
num, (long)ic);
}
node = get_conf_node(num);
......@@ -2653,7 +2654,7 @@ init_cache(void)
if ( fparse_conference(file_a, &tmp_conf) != OK )
restart_kom("init_cache(): fparse_conference(%ld) failed.\n",
i);
(long)ic);
node->size = ftell(file_a) - node->pos;
setup_small_conf(num, &tmp_conf);
......@@ -2676,7 +2677,8 @@ init_cache(void)
node->pos = pos;
if ( fparse_person(file_a, &tmp_pers) != OK )
restart_kom("init_cache: fparse_person failed. i==%ld\n", i);
restart_kom("init_cache: fparse_person failed. ic==%ld\n",
(long)ic);
node->size = ftell(file_a) - node->pos;
clear_person(&tmp_pers);
......@@ -2700,8 +2702,8 @@ init_cache(void)
node->pos = pos;
if ( fparse_text_stat(file_a, &tmp_text) != OK )
restart_kom("init_cache(): fparse_text_stat failed. i==%ld\n",
i);
restart_kom("init_cache(): fparse_text_stat failed. ic==%ld\n",
(long)ic);
node->size = ftell(file_a) - node->pos;
clear_text_stat(&tmp_text);
......
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