Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lyskom-server-ceder-1616-generations-topgit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
7f78be4f
Commit
7f78be4f
authored
Feb 15, 2002
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(jubel): Handle the new "public" form.
parent
43587e7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/server/server-config.c
src/server/server-config.c
+11
-4
No files found.
src/server/server-config.c
View file @
7f78be4f
/*
* $Id: server-config.c,v 0.7
3 2001/11/04 21:03:48
ceder Exp $
* $Id: server-config.c,v 0.7
4 2002/02/15 03:52:20
ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -368,21 +368,28 @@ jubel(const char *val, const struct parameter *par)
{
long
a
,
b
,
c
;
int
res
;
Bool
public
=
FALSE
;
if
(
val
==
NULL
)
return
OK
;
if
(
!
strncmp
(
val
,
"public "
,
7
))
{
public
=
TRUE
;
val
+=
7
;
}
res
=
sscanf
(
val
,
"%ld %ld %ld"
,
&
a
,
&
b
,
&
c
);
switch
(
res
)
{
case
3
:
register_jubel
(
a
,
b
,
c
);
register_jubel
(
a
,
b
,
c
,
publi
c
);
break
;
case
2
:
register_jubel
(
a
,
0
,
b
);
register_jubel
(
a
,
0
,
b
,
public
);
break
;
default:
kom_log
(
"%s expecting 2 or 3 integers as args
\n
"
,
par
->
name
);
kom_log
(
"%s expecting [public ] x y [z]
\n
"
,
par
->
name
);
return
FAILURE
;
}
return
OK
;
...
...
Write
Preview
Markdown
is supported
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