aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-respawn.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-08 18:14:54 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-08 18:14:54 +0100
commita45a3204a0b093d6899249b18808692e3f8ac863 (patch)
tree8922112c324fda189a0571fd1bcc2685d21a1474 /src/mds-respawn.c
parentwhenever fail_if gotos to the failure clause, print whence (diff)
downloadmds-a45a3204a0b093d6899249b18808692e3f8ac863.tar.gz
mds-a45a3204a0b093d6899249b18808692e3f8ac863.tar.bz2
mds-a45a3204a0b093d6899249b18808692e3f8ac863.tar.xz
replace all goto pfail with fail_if, so that we can take whence it failed
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-respawn.c')
-rw-r--r--src/mds-respawn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mds-respawn.c b/src/mds-respawn.c
index bcbb7fe..3e3406a 100644
--- a/src/mds-respawn.c
+++ b/src/mds-respawn.c
@@ -292,8 +292,7 @@ int postinitialise_server(void)
if (commands_args[i] == NULL)
j++;
else if (strequals(commands_args[i], "--initial-spawn"))
- if ((commands_args[i] = strdup("--respawn")) == NULL)
- goto pfail;
+ fail_if ((commands_args[i] = strdup("--respawn")) == NULL);
/* Respawn dead and dead and buried servers.*/