Commit 63234bac authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(cached_conf_exists): Explicitly return TRUE or FALSE, not a boolean

expression, to get rid of apcc warnings.
parent 21d24d49
/*
* $Id: simple-cache.c,v 0.47 1994/06/20 10:24:05 ceder Exp $
* $Id: simple-cache.c,v 0.48 1994/10/22 13:23:17 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -33,7 +33,7 @@
* New save algorithm by ceder.
*/
static char *rcsid = "$Id: simple-cache.c,v 0.47 1994/06/20 10:24:05 ceder Exp $";
static char *rcsid = "$Id: simple-cache.c,v 0.48 1994/10/22 13:23:17 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -819,7 +819,10 @@ cached_conf_exists(Conf_no conf_no)
node = get_conf_node (conf_no);
return node != NULL && node->s.exists != 0;
if (node != NULL && node->s.exists != 0)
return TRUE;
else
return FALSE;
}
......@@ -1685,6 +1688,7 @@ save_one_text(void)
sync_next++;
break;
}
/*NOTREACHED*/
restart_kom("Unreachable statement reached.");
}
......@@ -2160,7 +2164,7 @@ throwable_p(Cache_node *node)
{
return ((node->s.dirty == 0 || node->s.exists == 0)
&& node->snap_shot == NULL
&& node->lock_cnt == 0);
&& node->lock_cnt == 0) ? TRUE : FALSE;
}
static void
......
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