diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-04-05 18:17:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-04-05 18:17:38 +0000 |
commit | 0284dd4e4b0f7a4241ac64f4fa13c9809f84363d (patch) | |
tree | 4b7fce9d4edaa1fbbca5df2359f69a672b7e0f9e /usr.bin/rsync | |
parent | fe461c8a125630795b9015fbcdf46c87f1c6040c (diff) |
minor KNF
Diffstat (limited to 'usr.bin/rsync')
-rw-r--r-- | usr.bin/rsync/sender.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/rsync/sender.c b/usr.bin/rsync/sender.c index 186dabf94fe..00add6b4e6c 100644 --- a/usr.bin/rsync/sender.c +++ b/usr.bin/rsync/sender.c @@ -1,4 +1,4 @@ -/* $Id: sender.c,v 1.27 2021/03/22 11:49:15 claudio Exp $ */ +/* $Id: sender.c,v 1.28 2021/04/05 18:17:37 deraadt Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -395,7 +395,7 @@ rsync_sender(struct sess *sess, int fdin, /* Client sends zero-length exclusions if deleting. */ if (!sess->opts->server && sess->opts->del && - !io_write_int(sess, fdout, 0)) { + !io_write_int(sess, fdout, 0)) { ERRX1("io_write_int"); goto out; } @@ -568,8 +568,7 @@ rsync_sender(struct sess *sess, int fdin, if ((pfd[1].revents & POLLOUT) && wbufsz > 0) { assert(pfd[2].fd == -1); assert(wbufsz - wbufpos); - ssz = write(fdout, - wbuf + wbufpos, wbufsz - wbufpos); + ssz = write(fdout, wbuf + wbufpos, wbufsz - wbufpos); if (ssz == -1) { ERR("write"); goto out; |