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

(query_async): Connection::want_async is now an array of Bool

	instead of an array of int.  Adjust the code accordingly.
(accept_async): Likewise.
parent ed2e7a8b
/*
* $Id: session.c,v 0.31 1996/07/26 00:43:38 ceder Exp $
* $Id: session.c,v 0.32 1996/07/28 12:48:32 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* Session control and miscellaneous.
*/
static char *rcsid = "$Id: session.c,v 0.31 1996/07/26 00:43:38 ceder Exp $";
static char *rcsid = "$Id: session.c,v 0.32 1996/07/28 12:48:32 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -779,7 +779,7 @@ accept_async(Number_list *num_list)
for (i = 0; i < ay_dummy_last; i++)
{
active_connection->want_async[i] = 0;
active_connection->want_async[i] = FALSE;
}
......@@ -792,7 +792,7 @@ accept_async(Number_list *num_list)
{
if (num_list->data[i] >= 0 &&
num_list->data[i] < ay_dummy_last)
active_connection->want_async[num_list->data[i]] = 1;
active_connection->want_async[num_list->data[i]] = TRUE;
}
return OK;
......@@ -809,7 +809,7 @@ query_async(Number_list *result)
result->length = 0;
for (i = 0; i < ay_dummy_last; i++)
{
if (active_connection->want_async[i] != 0)
if (active_connection->want_async[i] != FALSE)
{
temp[result->length] = i;
result->length += 1;
......
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