home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use not f_name variable but __func__, standardize function name writing.
[plomrogue]
/
src
/
server
/
god_commands.c
diff --git
a/src/server/god_commands.c
b/src/server/god_commands.c
index 4ed9f7361452db42732b7af9f5cebf0f4b690515..674ff6229e06328cee8bdb999036c2fcc172ffee 100644
(file)
--- a/
src/server/god_commands.c
+++ b/
src/server/god_commands.c
@@
-332,7
+332,6
@@
static uint8_t world_may_be_set_active()
static uint8_t parse_world_active(char * tok0, char * tok1)
{
static uint8_t parse_world_active(char * tok0, char * tok1)
{
- char * f_name = "parse_world_active()";
if (!strcmp(tok0, s[S_CMD_WORLD_ACTIVE]) && !parsetest_int(tok1, '8'))
{
if (!parsetest_int(tok1, '8'))
if (!strcmp(tok0, s[S_CMD_WORLD_ACTIVE]) && !parsetest_int(tok1, '8'))
{
if (!parsetest_int(tok1, '8'))
@@
-343,7
+342,7
@@
static uint8_t parse_world_active(char * tok0, char * tok1)
if (!access(s[S_PATH_WORLDSTATE], F_OK))
{
int test = unlink(s[S_PATH_WORLDSTATE]);
if (!access(s[S_PATH_WORLDSTATE], F_OK))
{
int test = unlink(s[S_PATH_WORLDSTATE]);
- exit_trouble(-1 == test,
f_name, "unlink()
");
+ exit_trouble(-1 == test,
__func__, "unlink
");
}
world.exists = 0;
}
}
world.exists = 0;
}