summaryrefslogtreecommitdiff
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
parentf96ddd39748f283768217fb1a3cdd3a7cbde353a (diff)
GCC4.0 warning fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1571 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/base.h3
-rw-r--r--src/base.cpp3
-rw-r--r--src/inspircd.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/base.h b/include/base.h
index 13c361c0b..cec519e5c 100644
--- a/include/base.h
+++ b/include/base.h
@@ -88,9 +88,6 @@ public:
char* GetExt(std::string key);
};
-const int bitfields[] = {1,2,4,8,16,32,64,128};
-const int inverted_bitfields[] = {~1,~2,~4,~8,~16,~32,~64,~128};
-
/** BoolSet is a utility class designed to hold eight bools in a bitmask.
* Use BoolSet::Set and BoolSet::Get to set and get bools in the bitmask,
* and Unset and Invert for special operations upon them.
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");