diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-09 12:56:12 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-09 12:56:12 +0100 |
commit | 6a46e971b3904a969fe131afd32bbf570e512ee3 (patch) | |
tree | 8aac5b214933740ad05dc9886af8c60a91aaef1b /src/mds-echo.c | |
parent | make sure errno is not changed during fail_if (diff) | |
download | mds-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.c | 6 |
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; } |