1
0
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:
Bram Matthys
2003-02-23 03:41:39 +00:00
parent 8fbb67818b
commit 28d355f649
15 changed files with 23 additions and 48 deletions
+2
View File
@@ -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;
-1
View File
@@ -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;
-2
View File
@@ -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,
-5
View File
@@ -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]);
-6
View File
@@ -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]);
-1
View File
@@ -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;