Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
aeff15ff
Commit
aeff15ff
authored
Oct 14, 1998
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(adjust_read): Fixed a fence-post error that was introduced when
Local_to_global was introduced.
parent
eb720e97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/server/membership.c
src/server/membership.c
+8
-8
No files found.
src/server/membership.c
View file @
aeff15ff
/*
* $Id: membership.c,v 0.3
5
1998/
08/22
20:4
6
:5
5
ceder Exp $
* $Id: membership.c,v 0.3
6
1998/
10/14
20:4
5
:5
3
ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -32,7 +32,7 @@
#define DEBUG_MARK_AS_READ
static
const
char
*
rcsid
=
"$Id: membership.c,v 0.3
5
1998/
08/22
20:4
6
:5
5
ceder Exp $"
;
rcsid
=
"$Id: membership.c,v 0.3
6
1998/
10/14
20:4
5
:5
3
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -350,11 +350,11 @@ adjust_read( Membership * m,
Local_text_no
prev
;
#endif
/* (conf_min <= x <
=
conf_max) if x is an existing local_text_no */
/* (conf_min <= x < conf_max) if x is an existing local_text_no */
conf_min
=
l2g_next_key
(
&
conf
->
texts
,
0
);
if
(
conf_min
==
0
)
conf_min
=
l2g_first_appendable_key
(
&
conf
->
texts
);
conf_max
=
l2g_first_appendable_key
(
&
conf
->
texts
)
-
1
;
conf_max
=
l2g_first_appendable_key
(
&
conf
->
texts
);
/* Flag all removed texts as read, if that is not already done. */
if
(
m
->
last_text_read
<
conf_min
-
1
)
...
...
@@ -370,8 +370,8 @@ adjust_read( Membership * m,
/* This loops advances m->last_text_read as far as possible,
advancing handled along when appropriate. m->last_text_read
can be increased for one of two reasons:
- The text is present in read_texts.
- The text is deleted.
- The
next
text is present in read_texts.
- The
next
text is deleted.
This loop handles both cases. */
for
(
;
;
)
{
...
...
@@ -382,8 +382,8 @@ adjust_read( Membership * m,
m
->
last_text_read
++
;
handled
++
;
}
else
if
(
m
->
last_text_read
<
conf_max
&&
l2g_lookup
(
&
conf
->
texts
,
m
->
last_text_read
)
==
0
)
else
if
(
m
->
last_text_read
+
1
<
conf_max
&&
l2g_lookup
(
&
conf
->
texts
,
m
->
last_text_read
+
1
)
==
0
)
{
/* This text is deleted. */
m
->
last_text_read
++
;
...
...
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