aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-17 16:20:24 -0700
committermaximius <none@none>2009-10-17 16:20:24 -0700
commit3f338cc1c328c7280957583b50598292cd8fb64b (patch)
treeca209c2cd024e3902b7844b3224bceff7c5bb570 /src/trinitycore
parente585187b248f48b3c6e9247b49fa07c6565d65e5 (diff)
*Massive cleanup redux.
--HG-- branch : trunk
Diffstat (limited to 'src/trinitycore')
-rw-r--r--src/trinitycore/CliRunnable.cpp6
-rw-r--r--src/trinitycore/Main.cpp1
-rw-r--r--src/trinitycore/Master.cpp2
-rw-r--r--src/trinitycore/RASocket.cpp2
4 files changed, 4 insertions, 7 deletions
diff --git a/src/trinitycore/CliRunnable.cpp b/src/trinitycore/CliRunnable.cpp
index 966b0b4dabb..e325c2ca366 100644
--- a/src/trinitycore/CliRunnable.cpp
+++ b/src/trinitycore/CliRunnable.cpp
@@ -77,7 +77,7 @@ char ** cli_completion(const char * text, int start, int end)
{
char ** matches;
matches = (char**)NULL;
-
+
if(start == 0)
matches = rl_completion_matches((char*)text,&command_finder);
else
@@ -348,7 +348,6 @@ bool ChatHandler::HandleServerSetDiffTimeCommand(const char *args)
return true;
}
-
/// @}
#ifdef linux
@@ -401,14 +400,13 @@ void CliRunnable::run()
#endif
if (command_str != NULL)
{
- for(int x=0;command_str[x];x++)
+ for (int x=0; command_str[x]; x++)
if(command_str[x]=='\r'||command_str[x]=='\n')
{
command_str[x]=0;
break;
}
-
if(!*command_str)
{
#if PLATFORM == WINDOWS
diff --git a/src/trinitycore/Main.cpp b/src/trinitycore/Main.cpp
index 342252741fb..23e977bc69f 100644
--- a/src/trinitycore/Main.cpp
+++ b/src/trinitycore/Main.cpp
@@ -32,7 +32,6 @@
#include "Log.h"
#include "Master.h"
-
#ifndef _TRINITY_CORE_CONFIG
# define _TRINITY_CORE_CONFIG "TrinityCore.conf"
#endif //_TRINITY_CORE_CONFIG
diff --git a/src/trinitycore/Master.cpp b/src/trinitycore/Master.cpp
index 7e56cb7a636..ba293ec841a 100644
--- a/src/trinitycore/Master.cpp
+++ b/src/trinitycore/Master.cpp
@@ -391,7 +391,7 @@ int Master::Run()
cliThread->wait();
- #else
+ #else
cliThread->destroy();
diff --git a/src/trinitycore/RASocket.cpp b/src/trinitycore/RASocket.cpp
index d0ee5cc8053..f5d968ef102 100644
--- a/src/trinitycore/RASocket.cpp
+++ b/src/trinitycore/RASocket.cpp
@@ -121,7 +121,7 @@ void RASocket::OnRead()
///- Discard data after line break or line feed
bool gotenter=false;
unsigned int y=0;
- for(;y<sz;y++)
+ for (; y<sz; y++)
if(inp[y]=='\r'||inp[y]=='\n')
{
gotenter=true;