Commit db0c040f authored by Per Cederqvist's avatar 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
/* /*
* $Id: conference.c,v 0.74 2002/08/17 17:24:18 ceder Exp $ * $Id: conference.c,v 0.75 2002/09/19 21:20:05 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association. * Copyright (C) 1991-2002 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -701,6 +701,7 @@ do_lookup (Connection *conn, ...@@ -701,6 +701,7 @@ do_lookup (Connection *conn,
Conf_list_old raw_match; Conf_list_old raw_match;
unsigned long i; unsigned long i;
unsigned short retsize; unsigned short retsize;
unsigned int letterflag = want_persons;
if ( cached_lookup_name( name, &raw_match ) != OK ) if ( cached_lookup_name( name, &raw_match ) != OK )
return FAILURE; return FAILURE;
...@@ -711,7 +712,7 @@ do_lookup (Connection *conn, ...@@ -711,7 +712,7 @@ do_lookup (Connection *conn,
{ {
/* Don't call check access permissions here. It doesn't matter /* Don't call check access permissions here. It doesn't matter
that much if we allocate slightly too much memory. */ 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++; retsize++;
/* i is "unsigned long", and retsize is "unsigned short". /* i is "unsigned long", and retsize is "unsigned short".
...@@ -731,7 +732,7 @@ do_lookup (Connection *conn, ...@@ -731,7 +732,7 @@ do_lookup (Connection *conn,
for (i = 0; i < raw_match.no_of_conf_nos; i++) 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) && access_perm(raw_match.conf_nos[i], conn, read_protected) > none)
{ {
result->conf_nos[result->no_of_confs++] = raw_match.conf_nos[i]; result->conf_nos[result->no_of_confs++] = raw_match.conf_nos[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment