Code cleanup: mostly removing empty lines

This commit is contained in:
Alexander Barton 2010-12-27 17:20:46 +01:00
parent ebfcdb088b
commit 2a7dd06ebd
53 changed files with 13 additions and 101 deletions

View File

@ -17,7 +17,6 @@
#include "array.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
@ -26,9 +25,9 @@
/* Enable more Debug messages in alloc / append / memmove code. */
/* #define DEBUG_ARRAY */
#define array_UNUSABLE(x) ( !(x)->mem )
static bool
safemult_sizet(size_t a, size_t b, size_t *res)
{

View File

@ -9,10 +9,8 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#define __channel_c__
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __channel_h__
#define __channel_h__

View File

@ -9,10 +9,8 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#define __client_c__
#include "portab.h"
/**
@ -46,10 +44,8 @@
#include <exp.h>
#define GETID_LEN (CLIENT_NICK_LEN-1) + 1 + (CLIENT_USER_LEN-1) + 1 + (CLIENT_HOST_LEN-1) + 1
static CLIENT *This_Server, *My_Clients;
static WHOWAS My_Whowas[MAX_WHOWAS];

View File

@ -164,8 +164,6 @@ GLOBAL const char *Client_TypeText PARAMS((CLIENT *Client));
GLOBAL void Client_DebugDump PARAMS((void));
#endif
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __conf_h__
#define __conf_h__

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#define CONN_MODULE
#include "portab.h"

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __conn_func_h__
#define __conn_func_h__

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifdef ZLIB
#ifndef __conn_zip_h__
@ -29,10 +28,8 @@ GLOBAL bool Unzip_Buffer PARAMS(( CONN_ID Idx ));
GLOBAL long Zip_SendBytes PARAMS(( CONN_ID Idx ));
GLOBAL long Zip_RecvBytes PARAMS(( CONN_ID Idx ));
#endif /* __conn_zip_h__ */
#endif /* ZLIB */
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#define CONN_MODULE
#include "portab.h"

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __conn_h__
#define __conn_h__
@ -139,5 +138,4 @@ GLOBAL void Conn_DebugDump PARAMS((void));
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __defines_h__
#define __defines_h__
@ -113,5 +112,4 @@
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**
@ -43,7 +42,6 @@ Hash( const char *String )
(UINT32)strlen(buffer), 42);
} /* Hash */
/*
* Die hier verwendete Hash-Funktion stammt aus lookup2.c von Bob Jenkins
* (URL: <http://burtleburtle.net/bob/c/lookup2.c>). Aus dem Header:
@ -56,7 +54,6 @@ Hash( const char *String )
* nicht alle seiner Funktionen werden hier genutzt.
*/
#define hashsize(n) ((UINT32)1<<(n))
#define hashmask(n) (hashsize(n)-1)
@ -73,7 +70,6 @@ Hash( const char *String )
c -= a; c -= b; c ^= (b>>15); \
} /* mix */
static UINT32
jenkins_hash( register UINT8 *k, register UINT32 length, register UINT32 initval )
{
@ -123,5 +119,4 @@ jenkins_hash( register UINT8 *k, register UINT32 length, register UINT32 initval
return c;
} /* jenkins_hash */
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __hash_h__
#define __hash_h__
@ -22,5 +21,4 @@ GLOBAL UINT32 Hash PARAMS((const char *String ));
#endif
/* -eof- */

View File

@ -6,7 +6,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*
* Copyright (c) 2005 Florian Westphal (westphal@foo.fh-furtwangen.de)
*
*/
#include "portab.h"

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __irc_channel_h__
#define __irc_channel_h__
@ -26,8 +25,6 @@ GLOBAL bool IRC_LIST PARAMS((CLIENT *Client, REQUEST *Req ));
GLOBAL bool IRC_CHANINFO PARAMS((CLIENT *Client, REQUEST *Req ));
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __irc_info_h__
#define __irc_info_h__
@ -41,8 +40,6 @@ GLOBAL bool IRC_Send_NAMES PARAMS(( CLIENT *Client, CHANNEL *Chan ));
GLOBAL bool IRC_Show_MOTD PARAMS(( CLIENT *Client ));
GLOBAL bool IRC_Send_ISUPPORT PARAMS(( CLIENT *Client ));
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __irc_login_h__
#define __irc_login_h__
@ -29,5 +28,4 @@ GLOBAL bool IRC_QUIT PARAMS((CLIENT *Client, REQUEST *Req));
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __irc_mode_h__
#define __irc_mode_h__
@ -21,8 +20,6 @@
GLOBAL bool IRC_MODE PARAMS((CLIENT *Client, REQUEST *Req ));
GLOBAL bool IRC_AWAY PARAMS((CLIENT *Client, REQUEST *Req ));
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -13,7 +13,6 @@
* Channel operator commands (header)
*/
#ifndef __irc_op_h__
#define __irc_op_h__
@ -21,8 +20,6 @@
GLOBAL bool IRC_KICK PARAMS(( CLIENT *Client, REQUEST *Req ));
GLOBAL bool IRC_INVITE PARAMS(( CLIENT *Client, REQUEST *Req ));
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __irc_oper_h__
#define __irc_oper_h__
@ -26,8 +25,6 @@ GLOBAL bool IRC_CONNECT PARAMS((CLIENT *Client, REQUEST *Req ));
GLOBAL bool IRC_DISCONNECT PARAMS((CLIENT *Client, REQUEST *Req ));
GLOBAL bool IRC_WALLOPS PARAMS(( CLIENT *Client, REQUEST *Req ));
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __irc_server_h__
#define __irc_server_h__
@ -24,8 +23,6 @@ GLOBAL bool IRC_SQUIT PARAMS((CLIENT *Client, REQUEST *Req ));
GLOBAL bool IRC_ENDOFMOTD_Server PARAMS((CLIENT *Client));
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**
@ -211,7 +210,6 @@ Lists_MakeMask(const char *Pattern)
} /* Lists_MakeMask */
bool
Lists_Check( struct list_head *header, CLIENT *Client)
{

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __lists_h__
#define __lists_h__
@ -27,7 +26,6 @@ struct list_head {
struct list_elem *first;
};
GLOBAL struct list_elem *Lists_GetFirst PARAMS((const struct list_head *));
GLOBAL struct list_elem *Lists_GetNext PARAMS((const struct list_elem *));
@ -45,4 +43,5 @@ GLOBAL const char *Lists_MakeMask PARAMS((const char *Pattern));
GLOBAL const char *Lists_GetMask PARAMS(( const struct list_elem *e ));
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __log_h__
#define __log_h__
@ -31,10 +30,8 @@
# define LOG_DEBUG 7
#endif
#define LOG_snotice 1024
GLOBAL void Log_Init PARAMS(( bool Daemon_Mode ));
GLOBAL void Log_Exit PARAMS(( void ));
@ -57,8 +54,6 @@ GLOBAL void Log_Subprocess PARAMS((const int Level, const char *Format, ...));
GLOBAL void Log_InitErrorfile PARAMS(( void ));
#endif
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __match_h__
#define __match_h__
@ -21,8 +20,6 @@
GLOBAL bool Match PARAMS(( const char *Pattern, const char *String ));
GLOBAL bool MatchCaseInsensitive PARAMS(( const char *Pattern, const char *searchme ));
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __messages_h__
#define __messages_h__
@ -139,8 +138,6 @@
#define RPL_STATSLINKINFOZIP_MSG "211 %s %s %d %ld %ld/%ld %ld %ld/%ld :%ld"
#endif
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**
@ -407,7 +406,7 @@ Fill_Version( void )
snprintf(NGIRCd_Version, sizeof NGIRCd_Version, "%s %s-%s",
PACKAGE_NAME, PACKAGE_VERSION, NGIRCd_VersionAddition);
} /* Fill_Version */
} /* Fill_Version */
/**
@ -548,8 +547,8 @@ NGIRCd_getNobodyID(uid_t *uid, gid_t *gid )
*gid = pwd->pw_gid;
endpwent();
return true;
}
return true;
} /* NGIRCd_getNobodyID */
static bool
@ -702,7 +701,7 @@ NGIRCd_Init( bool NGIRCd_NoDaemon )
if (fd > 2)
close(fd);
return false;
}
} /* NGIRCd_Init */
/* -eof- */

View File

@ -13,7 +13,6 @@
* Prototypes of the "main module".
*/
#ifndef __ngircd_h__
#define __ngircd_h__
@ -51,5 +50,4 @@ GLOBAL char NGIRCd_ProtoID[COMMAND_LEN];/* Protokoll- und Server-Identifikation
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**
@ -32,6 +31,7 @@
#include <exp.h>
#include "op.h"
/**
* Return and log a "no privileges" message.
*/
@ -82,3 +82,6 @@ Op_Check(CLIENT * Client, REQUEST * Req)
* to trust remote operators. */
return true;
} /* Op_Check */
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __parse_h__
#define __parse_h__
@ -38,12 +37,10 @@ typedef struct _COMMAND
long bytes; /* number of bytes created */
} COMMAND;
GLOBAL bool Parse_Request PARAMS((CONN_ID Idx, char *Request ));
GLOBAL COMMAND *Parse_GetCommandStruct PARAMS(( void ));
#endif
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#define RESOLVER_TIMEOUT (Conf_PongTimeout*3)/4
#include "portab.h"

View File

@ -22,3 +22,5 @@ bool Signals_Init PARAMS((void));
void Signals_Exit PARAMS((void));
#endif
/* -eof- */

View File

@ -18,5 +18,4 @@
#undef GLOBAL
#define GLOBAL
/* -eof- */

View File

@ -18,5 +18,4 @@
#undef GLOBAL
#define GLOBAL extern
/* -eof- */

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __PORTAB__
#define __PORTAB__

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -10,7 +10,6 @@
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*/
#ifndef __splint__
#define __splint__
@ -37,8 +36,6 @@
#define WNOHANG 0
#endif
/* -eof- */

View File

@ -34,4 +34,3 @@ strtok_r(char *str, const char *delim, char **saveptr)
}
#endif

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#include "portab.h"
/**

View File

@ -9,7 +9,6 @@
* Please read the file COPYING, README and AUTHORS for more information.
*/
#ifndef __tool_h__
#define __tool_h__
@ -40,5 +39,4 @@ GLOBAL int ngt_SyslogFacilityID PARAMS((char *Name, int DefaultFacility));
#endif
/* -eof- */