summaryrefslogtreecommitdiff
path: root/usr.bin/rsync/client.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-02-11 19:18:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-02-11 19:18:37 +0000
commitc9cd7b2c9052281e113a2d896ed28a84b410b744 (patch)
treec6eefaebc0baf7fcc4738513a20e12867073b1a3 /usr.bin/rsync/client.c
parent3d65e35cc2a52aa1325eba38ab8cb0290c88c1d8 (diff)
cleanup weird spaces around !. (We normalize source-code to a standard
idiom because it is less error prone for a larger team. kristaps idiom is highly divergent) ok benno
Diffstat (limited to 'usr.bin/rsync/client.c')
-rw-r--r--usr.bin/rsync/client.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/rsync/client.c b/usr.bin/rsync/client.c
index 960927e9c8b..02b9bd95a32 100644
--- a/usr.bin/rsync/client.c
+++ b/usr.bin/rsync/client.c
@@ -1,4 +1,4 @@
-/* $Id: client.c,v 1.2 2019/02/10 23:24:14 benno Exp $ */
+/* $Id: client.c,v 1.3 2019/02/11 19:18:36 deraadt Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -47,13 +47,13 @@ rsync_client(const struct opts *opts, int fd, const struct fargs *f)
sess.opts = opts;
sess.lver = RSYNC_PROTOCOL;
- if ( ! io_write_int(&sess, fd, sess.lver)) {
+ if (!io_write_int(&sess, fd, sess.lver)) {
ERRX1(&sess, "io_write_int");
goto out;
- } else if ( ! io_read_int(&sess, fd, &sess.rver)) {
+ } else if (!io_read_int(&sess, fd, &sess.rver)) {
ERRX1(&sess, "io_read_int");
goto out;
- } else if ( ! io_read_int(&sess, fd, &sess.seed)) {
+ } else if (!io_read_int(&sess, fd, &sess.seed)) {
ERRX1(&sess, "io_read_int");
goto out;
}
@@ -80,7 +80,7 @@ rsync_client(const struct opts *opts, int fd, const struct fargs *f)
if (FARGS_RECEIVER != f->mode) {
LOG2(&sess, "client starting sender: %s",
NULL == f->host ? "(local)" : f->host);
- if ( ! rsync_sender(&sess, fd, fd,
+ if (!rsync_sender(&sess, fd, fd,
f->sourcesz, f->sources)) {
ERRX1(&sess, "rsync_sender");
goto out;
@@ -88,7 +88,7 @@ rsync_client(const struct opts *opts, int fd, const struct fargs *f)
} else {
LOG2(&sess, "client starting receiver: %s",
NULL == f->host ? "(local)" : f->host);
- if ( ! rsync_receiver(&sess, fd, fd, f->sink)) {
+ if (!rsync_receiver(&sess, fd, fd, f->sink)) {
ERRX1(&sess, "rsync_receiver");
goto out;
}