summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorrobbeh <robbeh@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-13 21:38:48 +0000
committerrobbeh <robbeh@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-13 21:38:48 +0000
commit6321db16cf36fff049a0614ae632d57711b063e0 (patch)
tree143eaa28190a40b14866ab9c2824d517abfe3ae3 /src/config.c
parentcb29211634780a2f1680e2def67c58e35ef6b11f (diff)
Fixed a few annoying compile warnings
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1664 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index 566e62728..66b880163 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1532,7 +1532,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 n;
+ unsigned int n;
int retval = 1;
int ac = 0;
char *av[MAXPARAMS];
@@ -1621,7 +1621,7 @@ int read_config(int reload)
int defconCount = 0;
if (reload) {
- int i, n;
+ unsigned int i, n;
/* Reset all the reloadable settings */
@@ -1918,7 +1918,7 @@ int read_config(int reload)
DefCon[0] = 0;
for (int level = 1; level < 5; ++level) {
DefCon[level] = 0;
- std::string *levelDefinition;
+ std::string *levelDefinition = NULL;
switch (level) {
case 1:
levelDefinition = &DefCon1;