commit - fb0fbe908d97b520cdb6f8180db3d3288339142a
commit + 5040d5648952f6e27eb80fd765c1e0850d73774e
blob - 6c4edd193160e7e18a72df04a2a7ae1cdc573dc6
blob + ce97c1eeb797cdf7e3f190c8db4059dece02f44c
--- src/ngircd/client.c
+++ src/ngircd/client.c
#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>
Client_SetHostname( CLIENT *Client, char *Hostname )
{
/* Hostname eines Clients setzen */
-
+
assert( Client != NULL );
assert( Hostname != NULL );
-
+
strlcpy( Client->host, Hostname, sizeof( Client->host ));
} /* Client_SetHostname */
Client_User( CLIENT *Client )
{
assert( Client != NULL );
- if( Client->user[0] ) return Client->user;
- else return "~";
+ return Client->user[0] ? Client->user : "~";
} /* Client_User */
Client_MyServerCount( void )
{
CLIENT *c;
- unsigned long cnt;
+ unsigned long cnt = 0;
- cnt = 0;
c = My_Clients;
while( c )
{
Client_OperCount( void )
{
CLIENT *c;
- unsigned long cnt;
+ unsigned long cnt = 0;
- cnt = 0;
c = My_Clients;
while( c )
{