Commit 63d431c3 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(login): Call CHK_BOOL for invisible.

(who_is_on_dynamic): Call CHK_BOOL for want_visible and want_invisible.
(set_connection_time_format): Call CHK_BOOL for use_utc.  Don't
	use KOM_INDEX_OUT_OF_RANGE for that error.
parent d51b2091
/*
* $Id: session.c,v 0.76 2003/08/17 11:09:05 ceder Exp $
* $Id: session.c,v 0.77 2003/08/23 15:15:47 ceder Exp $
* Copyright (C) 1991-1994, 1996-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -200,6 +200,7 @@ login (Pers_no pers_no,
Bool same_person;
CHK_CONNECTION(FAILURE);
CHK_BOOL(invisible, FAILURE);
GET_P_STAT(pers_p, pers_no, FAILURE);
if (!is_supervisor(pers_no, active_connection)
......@@ -558,6 +559,8 @@ who_is_on_dynamic(int want_visible,
int include_it = 0;
CHK_CONNECTION(FAILURE);
CHK_BOOL(want_visible, FAILURE);
CHK_BOOL(want_invisible, FAILURE);
session = traverse_connections(0);
while (session != 0)
{
......@@ -1060,12 +1063,7 @@ extern Success
set_connection_time_format(int use_utc)
{
CHK_CONNECTION(FAILURE);
if (use_utc != 0 && use_utc != 1)
{
kom_errno = KOM_INDEX_OUT_OF_RANGE;
err_stat = 0;
return FAILURE;
}
active_connection->use_utc = !!use_utc;
CHK_BOOL(use_utc, FAILURE);
active_connection->use_utc = use_utc;
return OK;
}
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