summaryrefslogtreecommitdiff
path: root/src/char_sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql')
-rw-r--r--src/char_sql/int_guild.c8
-rw-r--r--src/char_sql/int_party.c6
-rw-r--r--src/char_sql/int_pet.c6
-rw-r--r--src/char_sql/int_storage.c5
4 files changed, 13 insertions, 12 deletions
diff --git a/src/char_sql/int_guild.c b/src/char_sql/int_guild.c
index 258c173cf..3f9243bfe 100644
--- a/src/char_sql/int_guild.c
+++ b/src/char_sql/int_guild.c
@@ -4,6 +4,10 @@
//
+#include <string.h>
+#include <stdio.h>
+#include <stdlib.h>
+
#include "char.h"
#include "../common/strlib.h"
#include "int_storage.h"
@@ -15,10 +19,6 @@
#include "db.h"
#include "malloc.h"
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-
static struct dbt *guild_db_;
static struct dbt *castle_db_;
static struct dbt *guild_expcache_db_;
diff --git a/src/char_sql/int_party.c b/src/char_sql/int_party.c
index 05a607a15..af3ad7dc3 100644
--- a/src/char_sql/int_party.c
+++ b/src/char_sql/int_party.c
@@ -3,12 +3,12 @@
// SQL conversion by hack
//
-#include "char.h"
-#include "../common/strlib.h"
-#include "socket.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "char.h"
+#include "../common/strlib.h"
+#include "socket.h"
static struct party *party_pt;
static int party_newid=100;
diff --git a/src/char_sql/int_pet.c b/src/char_sql/int_pet.c
index edad95f84..44151c8e4 100644
--- a/src/char_sql/int_pet.c
+++ b/src/char_sql/int_pet.c
@@ -2,13 +2,13 @@
// original code from athena
// SQL conversion by Jioh L. Jung
//
-#include "char.h"
-#include "../common/strlib.h"
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "char.h"
+#include "../common/strlib.h"
+
struct s_pet *pet_pt;
static int pet_newid = 100;
diff --git a/src/char_sql/int_storage.c b/src/char_sql/int_storage.c
index a6ad01eea..69eaf2469 100644
--- a/src/char_sql/int_storage.c
+++ b/src/char_sql/int_storage.c
@@ -2,11 +2,12 @@
// original code from athena
// SQL conversion by Jioh L. Jung
//
-#include "char.h"
-#include "itemdb.h"
#include <string.h>
#include <stdlib.h>
+#include "char.h"
+#include "itemdb.h"
+
#define STORAGE_MEMINC 16
// reset by inter_config_read()