1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-15 11:20:26 +00:00

minor cleanup

This commit is contained in:
Florian Westphal 2006-12-07 22:24:14 +00:00
parent fb0fbe908d
commit 5040d56489

View File

@ -17,7 +17,7 @@
#include "portab.h"
static char UNUSED id[] = "$Id: client.c,v 1.93 2006/10/07 10:40:52 fw Exp $";
static char UNUSED id[] = "$Id: client.c,v 1.94 2006/12/07 22:24:14 fw Exp $";
#include "imp.h"
#include <assert.h>
@ -661,8 +661,7 @@ GLOBAL char *
Client_User( CLIENT *Client )
{
assert( Client != NULL );
if( Client->user[0] ) return Client->user;
else return "~";
return Client->user[0] ? Client->user : "~";
} /* Client_User */
@ -916,9 +915,8 @@ GLOBAL unsigned long
Client_MyServerCount( void )
{
CLIENT *c;
unsigned long cnt;
unsigned long cnt = 0;
cnt = 0;
c = My_Clients;
while( c )
{
@ -933,9 +931,8 @@ GLOBAL unsigned long
Client_OperCount( void )
{
CLIENT *c;
unsigned long cnt;
unsigned long cnt = 0;
cnt = 0;
c = My_Clients;
while( c )
{