Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
281532ae
Commit
281532ae
authored
Dec 28, 2001
by
Per Cederqvist
Browse files
Use ``enum access'' instead of ``Access''. (Bug 335).
parent
9064e92d
Changes
5
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
281532ae
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
.
...
...
src/server/conference.c
View file @
281532ae
/*
* $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
;
A
ccess
acc
;
enum
a
ccess
acc
;
CHK_CONNECTION
(
FAILURE
);
CHK_LOGIN
(
FAILURE
);
...
...
@@ -558,7 +558,7 @@ extern Success
delete_conf
(
Conf_no
conf_no
)
{
Conference
*
conf_c
;
A
ccess
acc
;
enum
a
ccess
acc
;
CHK_CONNECTION
(
FAILURE
);
CHK_LOGIN
(
FAILURE
);
...
...
@@ -783,7 +783,7 @@ get_conf_stat_old (Conf_no conf_no,
Conference
*
result
)
{
Conference
*
conf_c
;
A
ccess
acc
;
enum
a
ccess
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
)
{
A
ccess
acc
;
enum
a
ccess
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
;
A
ccess
acc
;
enum
a
ccess
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
;
A
ccess
acc
;
enum
a
ccess
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
;
A
ccess
acc
;
enum
a
ccess
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
;
A
ccess
acc
;
enum
a
ccess
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
;
A
ccess
acc
;
enum
a
ccess
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
;
A
ccess
acc
;
enum
a
ccess
acc
;
CHK_CONNECTION
(
FAILURE
);
CHK_LOGIN
(
FAILURE
);
...
...
src/server/membership.c
View file @
281532ae
/*
* $Id: membership.c,v 0.6
2
2001/12/28
13:3
0:0
2
ceder Exp $
* $Id: membership.c,v 0.6
3
2001/12/28
20:0
0:0
3
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
A
ccess
static
enum
a
ccess
access_perm_helper
(
Conf_no
victim
,
const
Connection
*
conn
,
A
ccess
wanted_access
)
enum
a
ccess
wanted_access
)
{
Pers_no
viewer
;
Person
*
viewer_p
;
...
...
@@ -779,12 +779,12 @@ access_perm_helper(Conf_no victim,
}
A
ccess
enum
a
ccess
access_perm
(
Conf_no
victim
,
const
Connection
*
viewer_conn
,
A
ccess
wanted_access
)
enum
a
ccess
wanted_access
)
{
A
ccess
result
;
enum
a
ccess
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
;
A
ccess
acc
;
enum
a
ccess
acc
;
int
i
;
CHK_CONNECTION
(
FAILURE
);
...
...
@@ -1416,7 +1416,7 @@ do_get_members (Conf_no conf_no,
Member_list
*
members
)
{
Conference
*
conf_c
;
A
ccess
acc
;
enum
a
ccess
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
);
...
...
src/server/person.c
View file @
281532ae
/*
* $Id: person.c,v 0.6
4
2001/1
1/06 21:38:36
ceder Exp $
* $Id: person.c,v 0.6
5
2001/1
2/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
;
A
ccess
acc
;
enum
a
ccess
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
;
A
ccess
acc
;
enum
a
ccess
acc
;
CHK_CONNECTION
(
FAILURE
);
CHK_LOGIN
(
FAILURE
);
...
...
@@ -811,7 +811,7 @@ get_created_texts(Pers_no pers_no,
L2g_iterator
*
result
)
{
Person
*
pers_p
;
A
ccess
acc
;
enum
a
ccess
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
;
A
ccess
acc
;
enum
a
ccess
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
;
A
ccess
victim_acc
;
enum
a
ccess
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
;
A
ccess
acc
;
enum
a
ccess
acc
;
CHK_CONNECTION
(
FAILURE
);
CHK_LOGIN
(
FAILURE
);
...
...
@@ -1128,7 +1128,7 @@ set_pers_flags(Pers_no pers_no,
Personal_flags
flags
)
{
Person
*
pers_p
;
A
ccess
acc
;
enum
a
ccess
acc
;
CHK_CONNECTION
(
FAILURE
);
CHK_LOGIN
(
FAILURE
);
...
...
src/server/text.c
View file @
281532ae
/*
* $Id: text.c,v 0.9
1
2001/12/28
19:03:25
ceder Exp $
* $Id: text.c,v 0.9
2
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
;
A
ccess
acc
;
enum
a
ccess
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
;
A
ccess
acc
;
enum
a
ccess
acc
;
CHK_CONNECTION
(
FAILURE
);
CHK_LOGIN
(
FAILURE
);
...
...
@@ -2950,7 +2950,7 @@ local_to_global(Conf_no conf_no,
Text_mapping
*
result
)
{
Conference
*
conf_c
;
A
ccess
acc
;
enum
a
ccess
acc
;
CHK_CONNECTION
(
FAILURE
);
if
(
first_local_no
==
0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment