From d0e9a569f832fae6a91d163c6c8b93f7eb924ff5 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 16 Jan 2013 18:18:57 -0800 Subject: Clean up some things after declassization --- src/common/core.cpp | 2 ++ src/common/db.cpp | 2 ++ src/common/grfio.cpp | 2 ++ src/common/lock.cpp | 2 ++ src/common/md5calc.cpp | 2 ++ src/common/mt_rand.cpp | 2 ++ src/common/nullpo.cpp | 2 ++ src/common/socket.cpp | 2 ++ src/common/timer.cpp | 2 ++ src/common/utils.cpp | 2 ++ 10 files changed, 20 insertions(+) (limited to 'src/common') diff --git a/src/common/core.cpp b/src/common/core.cpp index ef953f8..7da1b27 100644 --- a/src/common/core.cpp +++ b/src/common/core.cpp @@ -14,6 +14,8 @@ #include "timer.hpp" #include "version.hpp" +#include "../poison.hpp" + // Added by Gabuzomeu // // This is an implementation of signal() using sigaction() for portability. diff --git a/src/common/db.cpp b/src/common/db.cpp index 448bfef..6558ed0 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -6,6 +6,8 @@ #include "utils.hpp" +#include "../poison.hpp" + static int strdb_cmp(struct dbt *table, const char *a, const char* b) { diff --git a/src/common/grfio.cpp b/src/common/grfio.cpp index 93ea4ca..bbf073a 100644 --- a/src/common/grfio.cpp +++ b/src/common/grfio.cpp @@ -12,6 +12,8 @@ #include "socket.hpp" #include "utils.hpp" +#include "../poison.hpp" + //---------------------------- // file entry table struct //---------------------------- diff --git a/src/common/lock.cpp b/src/common/lock.cpp index 08ec2c4..a708c40 100644 --- a/src/common/lock.cpp +++ b/src/common/lock.cpp @@ -7,6 +7,8 @@ #include "cxxstdio.hpp" #include "socket.hpp" +#include "../poison.hpp" + /// Protected file writing /// (Until the file is closed, it keeps the old file) diff --git a/src/common/md5calc.cpp b/src/common/md5calc.cpp index e5a9fc0..c9c2415 100644 --- a/src/common/md5calc.cpp +++ b/src/common/md5calc.cpp @@ -4,6 +4,8 @@ #include "mt_rand.hpp" +#include "../poison.hpp" + // auxilary data /* sin() constant table diff --git a/src/common/mt_rand.cpp b/src/common/mt_rand.cpp index 651620a..fbbf71f 100644 --- a/src/common/mt_rand.cpp +++ b/src/common/mt_rand.cpp @@ -49,6 +49,8 @@ #include +#include "../poison.hpp" + #define N 624 // length of state vector #define M 397 // a period parameter #define K 0x9908B0DFU // a magic constant diff --git a/src/common/nullpo.cpp b/src/common/nullpo.cpp index f5d75cc..c18231a 100644 --- a/src/common/nullpo.cpp +++ b/src/common/nullpo.cpp @@ -3,6 +3,8 @@ #include #include +#include "../poison.hpp" + /// Actual output function void nullpo_info(const char *file, int line, const char *func) { diff --git a/src/common/socket.cpp b/src/common/socket.cpp index f2e6df6..c877b2b 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -18,6 +18,8 @@ #include "mmo.hpp" #include "utils.hpp" +#include "../poison.hpp" + static fd_set readfds; int fd_max; diff --git a/src/common/timer.cpp b/src/common/timer.cpp index 004771c..abc885d 100644 --- a/src/common/timer.cpp +++ b/src/common/timer.cpp @@ -11,6 +11,8 @@ #include "cxxstdio.hpp" #include "utils.hpp" +#include "../poison.hpp" + static struct TimerData *timer_data; static diff --git a/src/common/utils.cpp b/src/common/utils.cpp index d24c0a9..9a19244 100644 --- a/src/common/utils.cpp +++ b/src/common/utils.cpp @@ -9,6 +9,8 @@ #include +#include "../poison.hpp" + //----------------------------------------------------- // Function to suppress control characters in a string. //----------------------------------------------------- -- cgit v1.2.3-70-g09d2