mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-04 22:19:57 +00:00
Code cleanups from Florian Westphal, <westphal@foo.fh-furtwangen.de>.
This commit is contained in:
parent
a40a026d15
commit
d16ce5a735
@ -12,6 +12,7 @@
|
||||
|
||||
ngIRCd CVSHEAD
|
||||
|
||||
- Code cleanups from Florian Westphal, <westphal@foo.fh-furtwangen.de>.
|
||||
- Fixed detection of IRC lines which are too long to send. Detected by
|
||||
Florian Westphal, <westphal@foo.fh-furtwangen.de>.
|
||||
- Fixed return values of our own implementation of strlcpy(). The code has
|
||||
@ -563,4 +564,4 @@ ngIRCd 0.0.1, 31.12.2001
|
||||
|
||||
|
||||
--
|
||||
$Id: ChangeLog,v 1.252 2005/01/19 23:33:53 alex Exp $
|
||||
$Id: ChangeLog,v 1.253 2005/01/20 00:11:49 alex Exp $
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#include "portab.h"
|
||||
|
||||
static char UNUSED id[] = "$Id: client.c,v 1.76 2004/03/11 22:16:31 alex Exp $";
|
||||
static char UNUSED id[] = "$Id: client.c,v 1.77 2005/01/20 00:11:49 alex Exp $";
|
||||
|
||||
#include "imp.h"
|
||||
#include <assert.h>
|
||||
@ -1031,24 +1031,14 @@ New_Client_Struct( VOID )
|
||||
return NULL;
|
||||
}
|
||||
|
||||
c->next = NULL;
|
||||
c->hash = 0;
|
||||
memset( c, 0, sizeof ( CLIENT ));
|
||||
|
||||
c->type = CLIENT_UNKNOWN;
|
||||
c->conn_id = NONE;
|
||||
c->introducer = NULL;
|
||||
c->topserver = NULL;
|
||||
strcpy( c->id, "" );
|
||||
strcpy( c->pwd, "" );
|
||||
strcpy( c->host, "" );
|
||||
strcpy( c->user, "" );
|
||||
strcpy( c->info, "" );
|
||||
strcpy( c->modes, "" );
|
||||
c->oper_by_me = FALSE;
|
||||
c->hops = -1;
|
||||
c->token = -1;
|
||||
c->mytoken = -1;
|
||||
strcpy( c->away, "" );
|
||||
strcpy( c->flags, "" );
|
||||
|
||||
return c;
|
||||
} /* New_Client */
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#include "portab.h"
|
||||
|
||||
static char UNUSED id[] = "$Id: log.c,v 1.48 2004/10/20 13:47:32 alex Exp $";
|
||||
static char UNUSED id[] = "$Id: log.c,v 1.49 2005/01/20 00:12:23 alex Exp $";
|
||||
|
||||
#include "imp.h"
|
||||
#include <assert.h>
|
||||
@ -63,12 +63,11 @@ Log_Init( VOID )
|
||||
Log( LOG_NOTICE, "%s started.", NGIRCd_Version( ));
|
||||
|
||||
/* Informationen uebern den "Operation Mode" */
|
||||
strcpy( Init_Txt, "" );
|
||||
Init_Txt[0] = '\0';
|
||||
#ifdef DEBUG
|
||||
if( NGIRCd_Debug )
|
||||
{
|
||||
if( Init_Txt[0] ) strcat( Init_Txt, ", " );
|
||||
strcat( Init_Txt, "debug-mode" );
|
||||
strcpy( Init_Txt, "debug-mode" );
|
||||
}
|
||||
#endif
|
||||
if( NGIRCd_NoDaemon )
|
||||
|
Loading…
Reference in New Issue
Block a user