aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-echo.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-09 12:56:12 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-09 12:56:12 +0100
commit6a46e971b3904a969fe131afd32bbf570e512ee3 (patch)
tree8aac5b214933740ad05dc9886af8c60a91aaef1b /src/mds-echo.c
parentmake sure errno is not changed during fail_if (diff)
downloadmds-6a46e971b3904a969fe131afd32bbf570e512ee3.tar.gz
mds-6a46e971b3904a969fe131afd32bbf570e512ee3.tar.bz2
mds-6a46e971b3904a969fe131afd32bbf570e512ee3.tar.xz
missed to change some parts
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-echo.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mds-echo.c b/src/mds-echo.c
index 09533fd..ab85c31 100644
--- a/src/mds-echo.c
+++ b/src/mds-echo.c
@@ -184,18 +184,16 @@ int marshal_server(char* state_buf)
*/
int unmarshal_server(char* state_buf)
{
- int r;
/* buf_get_next(state_buf, int, MDS_ECHO_VARS_VERSION); */
buf_next(state_buf, int, 1);
buf_get_next(state_buf, int, connected);
buf_get_next(state_buf, uint32_t, message_id);
- r = mds_message_unmarshal(&received, state_buf);
- fail_if (r);
+ fail_if (mds_message_unmarshal(&received, state_buf));
return 0;
fail:
xperror(*argv);
mds_message_destroy(&received);
- return r;
+ return -1;
}