summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/botserv.c2
-rw-r--r--src/config.c4
-rw-r--r--src/modules.c5
-rw-r--r--src/operserv.c2
4 files changed, 5 insertions, 8 deletions
diff --git a/src/botserv.c b/src/botserv.c
index 961f07cee..3ba8cdb91 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -138,8 +138,6 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf)
int16 cstatus = 0;
char *cmd;
UserData *ud;
- int found = 0;
-
if (!u || !buf || !ci) {
return;
diff --git a/src/config.c b/src/config.c
index 198860138..b6f0816e3 100644
--- a/src/config.c
+++ b/src/config.c
@@ -804,7 +804,7 @@ int parse_directive(Directive * d, char *dir, int ac, char *av[MAXPARAMS],
int parse(char *buf, int linenum, int reload)
{
char *s, *t, *dir;
- int i, n, optind, val;
+ int n;
int retval = 1;
int ac = 0;
char *av[MAXPARAMS];
@@ -858,7 +858,7 @@ int parse(char *buf, int linenum, int reload)
if (n == lenof(directives)) {
/* error(linenum, "Unknown directive `%s'", dir);
- return 1; /* don't cause abort */
+ return 1; *//* don't cause abort */
}
return retval;
diff --git a/src/modules.c b/src/modules.c
index 60dffdb10..a32845f27 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -1896,7 +1896,6 @@ void moduleDisplayHelp(int service, User * u)
{
#ifdef USE_MODULES
int idx;
- int header_shown = 0;
ModuleHash *current = NULL;
Module *calling_module = mod_current_module;
char *calling_module_name = mod_current_module_name;
@@ -2300,12 +2299,10 @@ int moduleGetConfigDirective(Directive * d)
char *dir;
char buf[1024];
int linenum = 0;
- int i;
- int optind = 0;
int ac = 0;
char *av[MAXPARAMS];
char *s, *t;
- int retval;
+ int retval = 1;
config = fopen(SERVICES_CONF, "r");
if (!config) {
diff --git a/src/operserv.c b/src/operserv.c
index 08b42ad15..c91edde67 100644
--- a/src/operserv.c
+++ b/src/operserv.c
@@ -84,7 +84,9 @@ SListOpts szopts = { 0, NULL, &is_szline_entry_equal, &free_szline_entry };
/*************************************************************************/
/* *INDENT-OFF* */
void moduleAddOperServCmds(void) {
+#ifdef DEBUG_COMMANDS
Command *c;
+#endif
modules_core_init(OperServCoreNumber, OperServCoreModules);