summaryrefslogtreecommitdiff
path: root/src/map/pc_groups.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-20 15:59:58 +0100
committerHaru <haru@dotalux.com>2016-02-20 15:59:58 +0100
commit71968e6985a2d6798505b84bc7ed22f5c6bfcfac (patch)
tree4740ae636d410980f379cc4bb3a969b49451c7c7 /src/map/pc_groups.c
parent5b74faa8afd04771af7acb918072ea71a3db475f (diff)
parentb7f772294594c40ef1e18f9c044e5c4fe6b490f4 (diff)
downloadhercules-71968e6985a2d6798505b84bc7ed22f5c6bfcfac.tar.gz
hercules-71968e6985a2d6798505b84bc7ed22f5c6bfcfac.tar.bz2
hercules-71968e6985a2d6798505b84bc7ed22f5c6bfcfac.tar.xz
hercules-71968e6985a2d6798505b84bc7ed22f5c6bfcfac.zip
Merge pull request #1162 from 4144/flags
Add some compiler warning flags and fix new warnings
Diffstat (limited to 'src/map/pc_groups.c')
-rw-r--r--src/map/pc_groups.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc_groups.c b/src/map/pc_groups.c
index 72935adc3..b325a8ed7 100644
--- a/src/map/pc_groups.c
+++ b/src/map/pc_groups.c
@@ -110,7 +110,7 @@ static void read_config(void) {
snprintf(temp, sizeof(temp), "Group %d", id);
if ((name = config_setting_add(group, "name", CONFIG_TYPE_STRING)) == NULL ||
!config_setting_set_string(name, temp)) {
- ShowError("pc_groups:read_config: failed to set missing group name, id=%d, skipping... (%s:%d)\n",
+ ShowError("pc_groups:read_config: failed to set missing group name, id=%d, skipping... (%s:%u)\n",
id, config_setting_source_file(group), config_setting_source_line(group));
--i;
--group_count;
@@ -446,7 +446,7 @@ void do_init_pc_groups(void) {
for(i = 0; i < len; i++) {
unsigned int p;
if( ( p = pc_groups_add_permission(pc_g_defaults[i].name) ) != pc_g_defaults[i].permission )
- ShowError("do_init_pc_groups: %s error : %d != %d\n",pc_g_defaults[i].name,p,pc_g_defaults[i].permission);
+ ShowError("do_init_pc_groups: %s error : %u != %u\n", pc_g_defaults[i].name, p, pc_g_defaults[i].permission);
}
/**