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
b828746c
Commit
b828746c
authored
Aug 10, 2002
by
Per Cederqvist
Browse files
"kom-errno.h" must now be included before "manipulate.h".
(set_conf_errno): New function.
parent
26d7b120
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/conference.c
View file @
b828746c
/*
* $Id: conference.c,v 0.7
2
2002/0
6/22 10:07:49
ceder Exp $
* $Id: conference.c,v 0.7
3
2002/0
8/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.
...
...
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