Commit 281532ae authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Use ``enum access'' instead of ``Access''. (Bug 335).

parent 9064e92d
2001-12-28 Per Cederqvist <ceder@moria>
Use ``enum access'' instead of ``Access''. (Bug 335).
* src/server/manipulate.h: Use ``enum access'' instead of
``Access''.
(enum access): Removed ``Access'' typedef.
* src/server/conference.c: Use ``enum access'' instead of
``Access''.
* src/server/membership.c: Ditto.
* src/server/person.c: Ditto.
* src/server/text.c: Ditto.
Updated a comment.
* src/server/session.c (accept_async): Updated a comment that
talked about ``Async'' instead of ``enum async''.
Use ``enum object_type instead of ``Object_type''. (Bug 335).
* src/include/kom-types.h (enum object_type): Removed Object_type
typedef. All types that contain an enum object_type updated.
......
/*
* $Id: conference.c,v 0.69 2001/12/28 18:50:41 ceder Exp $
* $Id: conference.c,v 0.70 2001/12/28 20:00:03 ceder Exp $
* Copyright (C) 1991-2001 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -386,7 +386,7 @@ change_name (Conf_no conf_no,
const String new_name)
{
Conference * conf_c;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
CHK_LOGIN(FAILURE);
......@@ -558,7 +558,7 @@ extern Success
delete_conf (Conf_no conf_no )
{
Conference * conf_c;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
CHK_LOGIN(FAILURE);
......@@ -783,7 +783,7 @@ get_conf_stat_old (Conf_no conf_no,
Conference * result )
{
Conference * conf_c;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
GET_C_STAT(conf_c, conf_no, FAILURE);
......@@ -813,7 +813,7 @@ extern Success
get_uconf_stat (Conf_no conf_no,
Small_conf * result)
{
Access acc;
enum access acc;
Small_conf * conf_c;
CHK_CONNECTION(FAILURE);
......@@ -843,7 +843,7 @@ get_conf_stat_older (Conf_no conf_no,
Conference * result )
{
Conference * conf_c;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
GET_C_STAT(conf_c, conf_no, FAILURE);
......@@ -883,7 +883,7 @@ set_presentation (Conf_no conf_no,
Text_no text_no )
{
Conference * conf_c;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
CHK_LOGIN(FAILURE);
......@@ -915,7 +915,7 @@ set_etc_motd( Conf_no conf_no,
Text_no text_no )
{
Conference * conf_c;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
CHK_LOGIN(FAILURE);
......@@ -1062,7 +1062,7 @@ set_conf_type (Conf_no conf_no,
{
Conference *conf_c;
Member *memb;
Access acc;
enum access acc;
unsigned long i;
CHK_CONNECTION(FAILURE);
......@@ -1142,7 +1142,7 @@ set_garb_nice( Conf_no conf_no,
Garb_nice nice ) /* number of days */
{
Conference * conf_c;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
CHK_LOGIN(FAILURE);
......@@ -1173,7 +1173,7 @@ set_expire( Conf_no conf_no,
Garb_nice expire ) /* number of days */
{
Conference * conf_c;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
CHK_LOGIN(FAILURE);
......@@ -1204,7 +1204,7 @@ set_keep_commented(Conf_no conf_no,
Garb_nice keep_commented) /* number of days */
{
Conference * conf_c;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
CHK_LOGIN(FAILURE);
......
/*
* $Id: membership.c,v 0.62 2001/12/28 13:30:02 ceder Exp $
* $Id: membership.c,v 0.63 2001/12/28 20:00:03 ceder Exp $
* Copyright (C) 1991-2000 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -697,10 +697,10 @@ do_sub_member(Conf_no conf_no, /* Conf to delete member from. */
* error: see kom_errno
*/
static Access
static enum access
access_perm_helper(Conf_no victim,
const Connection *conn,
Access wanted_access)
enum access wanted_access)
{
Pers_no viewer;
Person * viewer_p;
......@@ -779,12 +779,12 @@ access_perm_helper(Conf_no victim,
}
Access
enum access
access_perm(Conf_no victim,
const Connection *viewer_conn,
Access wanted_access)
enum access wanted_access)
{
Access result;
enum access result;
if (wanted_access != read_protected
&& wanted_access != limited
......@@ -1285,7 +1285,7 @@ do_get_membership (Pers_no pers_no,
{
Person * p_orig;
Person temp_pers;
Access acc;
enum access acc;
int i;
CHK_CONNECTION(FAILURE);
......@@ -1416,7 +1416,7 @@ do_get_members (Conf_no conf_no,
Member_list *members)
{
Conference * conf_c;
Access acc;
enum access acc;
unsigned long src, dst;
Bool is_supervisor_of_conf;
......@@ -1632,7 +1632,7 @@ extern Success set_membership_type(Pers_no pers_no,
Person *pers_p;
Membership *membership;
Member *mbr;
Access acc;
enum access acc;
/* Check for logon */
CHK_CONNECTION(FAILURE);
......
/*
* $Id: person.c,v 0.64 2001/11/06 21:38:36 ceder Exp $
* $Id: person.c,v 0.65 2001/12/28 20:00:02 ceder Exp $
* Copyright (C) 1991-1999, 2001 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -736,7 +736,7 @@ get_person_stat (Pers_no person,
Person * result)
{
Person *p_orig;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
GET_P_STAT(p_orig, person, FAILURE);
......@@ -771,7 +771,7 @@ get_person_stat_old (Pers_no person,
Person * result)
{
Person *p_orig;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
CHK_LOGIN(FAILURE);
......@@ -811,7 +811,7 @@ get_created_texts(Pers_no pers_no,
L2g_iterator * result)
{
Person *pers_p;
Access acc;
enum access acc;
Local_text_no new_first;
Local_text_no new_len;
......@@ -860,7 +860,7 @@ map_created_texts(Pers_no pers_no,
Text_mapping *result)
{
Person *pers_p;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
if (first_local_no == 0)
......@@ -1005,7 +1005,7 @@ do_query_read_texts(Pers_no victim,
{
Person * victim_p;
Membership * membp;
Access victim_acc;
enum access victim_acc;
CHK_CONNECTION(FAILURE);
GET_P_STAT( victim_p, victim, FAILURE);
......@@ -1095,7 +1095,7 @@ set_user_area(Pers_no pers_no,
Text_no user_area)
{
Person *pers_p;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
CHK_LOGIN(FAILURE);
......@@ -1128,7 +1128,7 @@ set_pers_flags(Pers_no pers_no,
Personal_flags flags)
{
Person *pers_p;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
CHK_LOGIN(FAILURE);
......
/*
* $Id: text.c,v 0.91 2001/12/28 19:03:25 ceder Exp $
* $Id: text.c,v 0.92 2001/12/28 20:00:02 ceder Exp $
* Copyright (C) 1991-2001 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -272,7 +272,7 @@ submit_to(Conf_no conf_no, /* The conference the user is trying to */
const Conference *conf_c) /* May be NULL */
{
int i;
Access acc;
enum access acc;
CHK_CONNECTION(0);
CHK_LOGIN(0);
......@@ -2890,7 +2890,7 @@ get_map(Conf_no conf_no,
Local_text_no first_unwanted;
Local_text_no res_first;
int res_nr;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
CHK_LOGIN(FAILURE);
......@@ -2950,7 +2950,7 @@ local_to_global(Conf_no conf_no,
Text_mapping *result)
{
Conference * conf_c;
Access acc;
enum access acc;
CHK_CONNECTION(FAILURE);
if (first_local_no == 0)
......
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