diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 15:24:39 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 15:24:39 +0100 |
commit | 4cc637948552123652d0546d8b93cf5f17a690e0 (patch) | |
tree | f8e6cd717ea8c46cc6e26c2c76e7d087397321cf /src/client.c | |
parent | receive messsage from daemon (diff) | |
download | sat-4cc637948552123652d0546d8b93cf5f17a690e0.tar.gz sat-4cc637948552123652d0546d8b93cf5f17a690e0.tar.bz2 sat-4cc637948552123652d0546d8b93cf5f17a690e0.tar.xz |
...
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
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; } |