mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-06 05:33:12 +02:00
- Code cleanup (gcc 3.2 warnings with -Wall).
Compile tests done: Linux, Linux SSL, Linux SSL+ZIP, Windows, Windows ZIP, Windows SSL+ZIP. This might also have fixed some (or 1) bug(s) :P.
This commit is contained in:
@@ -146,7 +146,9 @@ DLLFUNC int Mod_Test(ModuleInfo *modinfo)
|
||||
int l_commands_Test(ModuleInfo *modinfo)
|
||||
#endif
|
||||
{
|
||||
#ifdef SCAN_API
|
||||
Module p;
|
||||
#endif
|
||||
bcopy(modinfo,&ModCmdsInfo,modinfo->size);
|
||||
#ifdef SCAN_API
|
||||
p.header = &scan_socks_Header;
|
||||
|
||||
@@ -482,7 +482,6 @@ DLLFUNC int htm_config_test(ConfigFile *cf, ConfigEntry *ce, int type, int *errs
|
||||
|
||||
DLLFUNC int htm_config_run(ConfigFile *cf, ConfigEntry *ce, int type) {
|
||||
ConfigEntry *cep;
|
||||
int errors = 0;
|
||||
|
||||
if (type != CONFIG_SET)
|
||||
return 0;
|
||||
|
||||
@@ -109,8 +109,6 @@ int m_svslusers_Unload(int module_unload)
|
||||
*/
|
||||
int m_svslusers(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
{
|
||||
aClient *acptr;
|
||||
|
||||
if (!IsULine(sptr) || parc < 4)
|
||||
return -1;
|
||||
if (hunt_server_token(cptr, sptr, MSG_SVSLUSERS, TOK_SVSLUSERS, "%s %s :%s", 1, parc,
|
||||
|
||||
@@ -117,11 +117,6 @@ int m_unkline_Unload(int module_unload)
|
||||
|
||||
DLLFUNC int m_unkline(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
{
|
||||
|
||||
char *hosttemp = parv[1], host[80], name[80];
|
||||
ConfigItem_ban *bconf;
|
||||
|
||||
|
||||
if (!MyClient(sptr) || !OPCanUnKline(sptr))
|
||||
{
|
||||
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
|
||||
|
||||
@@ -118,12 +118,6 @@ int m_unzline_Unload(int module_unload)
|
||||
|
||||
DLLFUNC int m_unzline(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
{
|
||||
char userhost[512 + 2] = "", *in;
|
||||
int uline = 0, akill = 0;
|
||||
char *mask, *server = NULL;
|
||||
ConfigItem_ban *bconf;
|
||||
uline = IsULine(sptr) ? 1 : 0;
|
||||
|
||||
if (!MyClient(sptr) || !OPCanZline(sptr))
|
||||
{
|
||||
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
|
||||
|
||||
@@ -441,7 +441,6 @@ DLLFUNC int h_config_test(ConfigFile *cf, ConfigEntry *ce, int type, int *errs)
|
||||
|
||||
DLLFUNC int h_config_run(ConfigFile *cf, ConfigEntry *ce, int type) {
|
||||
ConfigEntry *cep;
|
||||
int errors = 0;
|
||||
|
||||
if (type != CONFIG_SET)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user