aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-echo.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds-echo.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mds-echo.c b/src/mds-echo.c
index b6df862..31e8b86 100644
--- a/src/mds-echo.c
+++ b/src/mds-echo.c
@@ -218,17 +218,13 @@ int __attribute__((const)) reexec_failure_recover(void)
*/
int master_loop(void)
{
- int rc = 1;
+ int rc = 1, r;
while (!reexecing && !terminating)
{
- int r = mds_message_read(&received, socket_fd);
- if (r == 0)
- {
- r = echo_message();
- if (r == 0)
- continue;
- }
+ if (r = mds_message_read(&received, socket_fd), r == 0)
+ if (r = echo_message(), r == 0)
+ continue;
if (r == -2)
{