diff options
Diffstat (limited to '')
-rw-r--r-- | src/client.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client.c b/src/client.c index 6b57358..6da3b39 100644 --- a/src/client.c +++ b/src/client.c @@ -102,8 +102,7 @@ send_command(enum command cmd, size_t n, const char *restrict msg) /* Send message. */ t (write(fd, &cmd_, sizeof(cmd_)) < (ssize_t)sizeof(cmd_)); while (n) { - r = write(fd, msg, n); - t (r <= 0); + t (r = write(fd, msg, n), r <= 0); msg += (size_t)r; n -= (size_t)r; } |