diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-25 09:56:36 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-25 09:56:36 +0000 |
commit | 3914480cf65cc3c37056b9b8ed178ca6ed4e3809 (patch) | |
tree | a1c74ea53c8ccee090d6b697a1917bc7b824a968 /src | |
parent | 1d029df57061524a1d30a6ffaa3fdee37181d638 (diff) |
Fixed compile time glitches in new code, removed obselete variables
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1932 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index c305fea92..04777ae19 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2706,7 +2706,6 @@ int InspIRCd(char** argv, int argc) WritePID(PID); length = sizeof (client); - char tcp_msg[MAXBUF],tcp_host[MAXBUF],tcp_sum[MAXBUF]; engine_structs; timeval tvs; tvs.tv_usec = 10000L; @@ -2740,9 +2739,10 @@ int InspIRCd(char** argv, int argc) for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) { - if (!a->Poll()) + InspSocket* s = (InspSocket*)*a; + if (!s->Poll()) { - delete *a; + delete s; module_sockets.erase(a); break; } |