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

(add_to_kill_list): Use the new isc_getoopsource() function instead of

	accessing the internals of the isc_mcb structure.
(data_available_callback): Ditto.
parent f3602e6d
/*
* $Id: connections.c,v 0.107 2003/07/30 17:58:37 ceder Exp $
* $Id: connections.c,v 0.108 2003/07/31 17:54:24 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -557,7 +557,7 @@ add_to_kill_list(Connection *conn)
if (!kill_pending)
{
source = conn->isc_session->master->event_source;
source = isc_getoopsource(conn->isc_session);
source->on_time(source, OOP_TIME_NOW, check_kill_flg, NULL);
kill_pending = 1;
}
......@@ -1002,7 +1002,7 @@ data_available_callback(oop_source *source,
assert(event == OOP_READ);
assert(conn->isc_session->fd == fd);
assert(conn->isc_session->master->event_source == source);
assert(isc_getoopsource(conn->isc_session) == source);
assert(conn->on_queue == FALSE);
/* Something arrived, so we are busy. */
......
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