aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-echo.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-02 20:20:16 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-02 20:20:16 +0200
commitf45ddcf8136fabc8a14c66250e3be540661b3634 (patch)
tree5701cb54f6b5f463575d4601a3560ec0fd305d83 /src/mds-echo.c
parentmisc (diff)
downloadmds-f45ddcf8136fabc8a14c66250e3be540661b3634.tar.gz
mds-f45ddcf8136fabc8a14c66250e3be540661b3634.tar.bz2
mds-f45ddcf8136fabc8a14c66250e3be540661b3634.tar.xz
misc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-echo.c')
-rw-r--r--src/mds-echo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mds-echo.c b/src/mds-echo.c
index 4867e90..25f1fa5 100644
--- a/src/mds-echo.c
+++ b/src/mds-echo.c
@@ -185,7 +185,7 @@ int unmarshal_server(char* state_buf)
r = mds_message_unmarshal(&received, state_buf);
if (r)
{
- perror(*argv);
+ xperror(*argv);
mds_message_destroy(&received);
}
return r;
@@ -245,7 +245,7 @@ int master_loop(void)
rc = 0;
goto fail;
pfail:
- perror(*argv);
+ xperror(*argv);
fail:
if (rc || !reexecing)
mds_message_destroy(&received);
@@ -323,7 +323,7 @@ int echo_message(void)
recv_length == NULL ? "" : recv_length,
recv_length == NULL ? "" : "\n");
- /* Increase message ID */
+ /* Increase message ID. */
message_id = message_id == INT32_MAX ? 0 : (message_id + 1);
/* Send echo. */
@@ -354,7 +354,7 @@ int full_send(const char* message, size_t length)
}
else if ((sent < length) && (errno != EINTR))
{
- perror(*argv);
+ xperror(*argv);
return -1;
}
message += sent;