aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-29 15:24:39 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-29 15:24:39 +0100
commit4cc637948552123652d0546d8b93cf5f17a690e0 (patch)
treef8e6cd717ea8c46cc6e26c2c76e7d087397321cf /src/client.c
parentreceive messsage from daemon (diff)
downloadsat-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.c3
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;
}