summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-30 22:46:09 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-30 22:46:09 +0000
commitb64108b949c84da62e2c3e7eb2a862f58bcbcb22 (patch)
tree25c9563ad66e0bbdd67194f2348e55e84a851318 /src
parentf96ddd39748f283768217fb1a3cdd3a7cbde353a (diff)
GCC4.0 warning fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1571 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/base.cpp3
-rw-r--r--src/inspircd.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/base.cpp b/src/base.cpp
index 9d03b6afb..69468f59c 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -23,6 +23,9 @@
#include "modules.h"
#include "helperfuncs.h"
+const int bitfields[] = {1,2,4,8,16,32,64,128};
+const int inverted_bitfields[] = {~1,~2,~4,~8,~16,~32,~64,~128};
+
extern time_t TIME;
bool Extensible::Extend(std::string key, char* p)
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 4291f604c..71ea723d5 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2684,7 +2684,7 @@ int InspIRCd(char** argv, int argc)
WritePID(PID);
/* setup select call */
-#ifndef USE_KQUEUE
+#ifdef USE_SELECT
FD_ZERO(&selectFds);
#endif
log(DEBUG,"InspIRCd: startup: zero selects");