Skip to content
GitLab
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
befaf5ef
Commit
befaf5ef
authored
Aug 09, 1998
by
Per Cederqvist
Browse files
(get_map): Set result.first_local_no correctly if the map in the
conference is completely empty.
parent
411fa5ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/text.c
View file @
befaf5ef
/*
* $Id: text.c,v 0.5
4
1998/08/09
07:18:13
ceder Exp $
* $Id: text.c,v 0.5
5
1998/08/09
19:06:50
ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -29,7 +29,7 @@
*/
static
const
char
*
rcsid
=
"$Id: text.c,v 0.5
4
1998/08/09
07:18:13
ceder Exp $"
;
rcsid
=
"$Id: text.c,v 0.5
5
1998/08/09
19:06:50
ceder Exp $"
;
#include
"rcs.h"
USE
(
rcsid
);
...
...
@@ -3023,11 +3023,16 @@ get_map(Conf_no conf_no,
return
FAILURE
;
}
/* Get the lowest existing text, or, if no text exists, the next
text number that will be used. */
res_first
=
l2g_next_key
(
&
conf_c
->
texts
,
0
);
/* Bug compatibility: accept first_local_no==0 because lyskomd
1.9.0 did so. */
res_first
=
max
(
res_first
,
1
);
if
(
res_first
==
0
)
res_first
=
l2g_first_appendable_key
(
&
conf_c
->
texts
);
/* Start where the user wants to start, unless that is too small. */
res_first
=
max
(
res_first
,
first_local_no
);
/* Find the endpoint. */
first_unwanted
=
min
(
highest
+
1
,
first_local_no
+
no_of_texts
);
if
(
first_unwanted
>=
res_first
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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