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

"kom-errno.h" must now be included before "manipulate.h".

(set_conf_errno): New function.
parent 26d7b120
/*
* $Id: conference.c,v 0.72 2002/06/22 10:07:49 ceder Exp $
* $Id: conference.c,v 0.73 2002/08/10 16:55:53 ceder Exp $
* Copyright (C) 1991-2001 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -50,12 +50,12 @@
#include "com.h"
#include "async.h"
#include "connections.h"
#include "kom-errno.h"
#include "manipulate.h"
#include "server/smalloc.h"
#include "kom-config.h"
#include "parser.h"
#include "internal-connections.h"
#include "kom-errno.h"
#include "lyskomd.h"
#include "debug.h"
#include "send-async.h"
......@@ -127,6 +127,19 @@ do_delete_conf (Conf_no conf_no,
* Functions that are exported to the server.
*/
void
set_conf_errno(const Connection *viewer_conn,
Conf_no conf_no,
enum kom_err errcode)
{
err_stat = conf_no;
if (access_perm(conf_no, viewer_conn, read_protected) <= none)
kom_errno = KOM_UNDEF_CONF;
else
kom_errno = errcode;
}
/*
* Return TRUE if NAME is not already used. Set kom_errno to
* KOM_LONG_STR or KOM_BAD_NAME if it fails.
......
Supports Markdown
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