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
db0c040f
Commit
db0c040f
authored
Sep 19, 2002
by
Per Cederqvist
Browse files
(do_lookup): Introduce a new variable letterflag to get rid of a
compiler warning from gcc-2.7.2.2 on AIX.
parent
5d7767e7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server/conference.c
View file @
db0c040f
/*
* $Id: conference.c,v 0.7
4
2002/0
8
/1
7 17:24:18
ceder Exp $
* $Id: conference.c,v 0.7
5
2002/0
9
/1
9 21:20:05
ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -701,6 +701,7 @@ do_lookup (Connection *conn,
Conf_list_old
raw_match
;
unsigned
long
i
;
unsigned
short
retsize
;
unsigned
int
letterflag
=
want_persons
;
if
(
cached_lookup_name
(
name
,
&
raw_match
)
!=
OK
)
return
FAILURE
;
...
...
@@ -711,7 +712,7 @@ do_lookup (Connection *conn,
{
/* Don't call check access permissions here. It doesn't matter
that much if we allocate slightly too much memory. */
if
(
raw_match
.
type_of_conf
[
i
].
letter_box
==
want_persons
)
if
(
raw_match
.
type_of_conf
[
i
].
letter_box
==
letterflag
)
{
retsize
++
;
/* i is "unsigned long", and retsize is "unsigned short".
...
...
@@ -731,7 +732,7 @@ do_lookup (Connection *conn,
for
(
i
=
0
;
i
<
raw_match
.
no_of_conf_nos
;
i
++
)
{
if
(
raw_match
.
type_of_conf
[
i
].
letter_box
==
want_persons
if
(
raw_match
.
type_of_conf
[
i
].
letter_box
==
letterflag
&&
access_perm
(
raw_match
.
conf_nos
[
i
],
conn
,
read_protected
)
>
none
)
{
result
->
conf_nos
[
result
->
no_of_confs
++
]
=
raw_match
.
conf_nos
[
i
];
...
...
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