summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-18 09:13:01 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-18 09:13:01 +0000
commit8855528bcaa2c06cc7f23d53d63cbfdadd2f8fcf (patch)
tree7dc380f0d787f5c8188a4778188127dc7d0cd762 /src
parent3a4984a967675b1fd10c84730994bf08766c639d (diff)
downloadhercules-8855528bcaa2c06cc7f23d53d63cbfdadd2f8fcf.tar.gz
hercules-8855528bcaa2c06cc7f23d53d63cbfdadd2f8fcf.tar.bz2
hercules-8855528bcaa2c06cc7f23d53d63cbfdadd2f8fcf.tar.xz
hercules-8855528bcaa2c06cc7f23d53d63cbfdadd2f8fcf.zip
minor code tweaking
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11936 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/char/char.c4
-rw-r--r--src/char_sql/char.c6
-rw-r--r--src/map/irc.c2
-rw-r--r--src/txt-converter/char-converter.c2
-rw-r--r--src/txt-converter/login-converter.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/char/char.c b/src/char/char.c
index c6cdf3f32..d91ebd1aa 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -412,7 +412,9 @@ static int char_db_kickoffline(DBKey key, void* data, va_list ap)
mapif_disconnectplayer(server[character->server].fd, character->account_id, character->char_id, 1);
else if (character->waiting_disconnect == -1)
set_char_offline(character->char_id, character->account_id);
- else return 0;
+ else
+ return 0; // fail
+
return 1;
}
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index a40d627b8..cf6ea56e7 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -339,8 +339,10 @@ static int char_db_kickoffline(DBKey key, void* data, va_list ap)
mapif_disconnectplayer(server[character->server].fd, character->account_id, character->char_id, 1);
else if (character->waiting_disconnect == -1)
set_char_offline(character->char_id, character->account_id);
- else return 0;
- return 1; // WTF, pick one!
+ else
+ return 0; // fail
+
+ return 1;
}
void set_all_offline(int id)
diff --git a/src/map/irc.c b/src/map/irc.c
index 67d269e51..0238225fe 100644
--- a/src/map/irc.c
+++ b/src/map/irc.c
@@ -52,7 +52,7 @@ int irc_connect_timer(int tid, unsigned int tick, int id, int data)
return 0;
//Ok, this ShowInfo and printf are a little ugly, but they are meant to
//debug just how long the code freezes here. [Skotlex]
- ShowInfo("(IRC) Connecting to %s...\n", irc_ip_str);
+ ShowInfo("(IRC) Connecting to %s... ", irc_ip_str);
irc_fd = make_connection(irc_ip,irc_port);
if(irc_fd > 0){
printf("ok\n");
diff --git a/src/txt-converter/char-converter.c b/src/txt-converter/char-converter.c
index 8168e0ee3..dcc5b9653 100644
--- a/src/txt-converter/char-converter.c
+++ b/src/txt-converter/char-converter.c
@@ -301,6 +301,4 @@ int do_init(int argc, char** argv)
return 0;
}
-void do_abort(void) {}
-
void do_final(void) {}
diff --git a/src/txt-converter/login-converter.c b/src/txt-converter/login-converter.c
index 640b77230..6936ca782 100644
--- a/src/txt-converter/login-converter.c
+++ b/src/txt-converter/login-converter.c
@@ -227,8 +227,6 @@ int do_init(int argc, char** argv)
return 0;
}
-void do_abort(void) {}
-
void do_final(void)
{
if( gm_account_db )