Commit c60cb39b authored by Per Cederqvist's avatar Per Cederqvist

Include internal-services.h.

(rcsid): Added a missing const.
(set_loc_no): Renamed a parameter name to avoid warnings from gcc.
(find_recipient): Now static.  Removed declaration of errno.
parent 1babbbb8
/*
* $Id: text.c,v 0.48 1998/06/14 14:51:26 byers Exp $
* $Id: text.c,v 0.49 1998/07/08 17:08:58 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,8 @@
* All atomic calls that deals with texts.
*/
static char *rcsid = "$Id: text.c,v 0.48 1998/06/14 14:51:26 byers Exp $";
static const char *
rcsid = "$Id: text.c,v 0.49 1998/07/08 17:08:58 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -63,6 +64,8 @@ USE(rcsid);
#include "param.h"
#include "kom-memory.h"
#include "aux-items.h"
#include "internal-services.h"
/*
* Forward declarations
......@@ -113,16 +116,16 @@ add_text_in_conf(Conference * conf_c,
static void
set_loc_no (Conference * conf_c,
Local_text_no loc_no,
Local_text_no lno,
Text_no text_no)
{
if ( loc_no < conf_c->texts.first_local_no
|| loc_no > conf_c->texts.first_local_no + conf_c->texts.no_of_texts )
if ( lno < conf_c->texts.first_local_no
|| lno > conf_c->texts.first_local_no + conf_c->texts.no_of_texts )
{
return; /* Doesn't exist in conf.stat. */
}
conf_c->texts.texts[ loc_no - conf_c->texts.first_local_no ] = text_no;
conf_c->texts.texts[ lno - conf_c->texts.first_local_no ] = text_no;
return;
}
......@@ -205,7 +208,7 @@ count_comment( Text_stat *t_stat )
*/
int
static int
find_recipient(Conf_no conf_no,
Text_stat * t_stat)
{
......@@ -2389,7 +2392,6 @@ do_create_text(const String message,
{
Text_no text;
Text_stat * t_stat;
extern int errno;
CHK_LOGIN(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