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

(do_add_recipient): Use ``enum info_type'' instead of ``Info_type''.

(send_async_sub_recipient): Ditto.
(remove_misc_item): Ditto.
(create_text_add_miscs): Ditto.
(send_async_add_recipient): Ditto.
(add_recipient): Ditto.  (Bug 335).
parent f60762ea
/*
* $Id: text.c,v 0.90 2001/11/18 22:51:52 ceder Exp $
* $Id: text.c,v 0.91 2001/12/28 19:03:25 ceder Exp $
* Copyright (C) 1991-2001 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -366,10 +366,10 @@ do_add_comment(Text_no comment,
* Say that RECEIVER is a recipient of TEXT.
*/
static Success
do_add_recipient(Text_no text,
Text_stat * text_s, /* May be NULL */
Conf_no receiver,
Info_type recv_type)
do_add_recipient(Text_no text,
Text_stat * text_s, /* May be NULL */
Conf_no receiver,
enum info_type recv_type)
{
Conference *rece_c;
......@@ -530,7 +530,7 @@ static void
send_async_sub_recipient(Text_no text_no,
const Text_stat *text_s,
Conf_no conf_no,
Info_type type)
enum info_type type)
{
Connection *cptr;
Session_no i = 0;
......@@ -653,10 +653,10 @@ do_sub_recpt(Text_no text_no,
/* OTHER is a INFO_TYPE to text number TEXT (whose text status is
TEXT_S). This function removes that misc-info from TEXT_S. */
static void
remove_misc_item(Text_no text,
Text_stat *text_s,
Info_type info_type,
Text_no other)
remove_misc_item(Text_no text,
Text_stat *text_s,
enum info_type info_type,
Text_no other)
{
int i;
......@@ -1867,7 +1867,7 @@ create_text_add_miscs(Text_no new_text,
default:
#endif
case unknown_info:
restart_kom("create_text_add_misc() - illegal Info_type");
restart_kom("create_text_add_misc() - illegal enum info_type");
}
}
return OK;
......@@ -2423,7 +2423,7 @@ static void
send_async_add_recipient(Text_no text_no,
const Text_stat *text_s,
Conf_no conf_no,
Info_type type)
enum info_type type)
{
Connection *cptr;
Session_no i = 0;
......@@ -2450,9 +2450,9 @@ send_async_add_recipient(Text_no text_no,
* Add a recipient to a text.
*/
extern Success
add_recipient(Text_no text_no,
Conf_no conf_no,
Info_type type) /* recpt, cc_recpt or bcc_recpt */
add_recipient(Text_no text_no,
Conf_no conf_no,
enum info_type type) /* recpt, cc_recpt or bcc_recpt */
{
Text_stat *t_stat;
Conference *conf_c;
......
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