=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rsync/server.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/rsync/server.c 2019/02/11 19:18:36 1.3 +++ src/usr.bin/rsync/server.c 2019/02/11 21:41:22 1.4 @@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.3 2019/02/11 19:18:36 deraadt Exp $ */ +/* $Id: server.c,v 1.4 2019/02/11 21:41:22 deraadt Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -30,9 +30,9 @@ { int fl; - if (-1 == (fl = fcntl(fd, F_GETFL, 0))) + if ((fl = fcntl(fd, F_GETFL, 0)) == -1) ERR(sess, "fcntl: F_GETFL"); - else if (-1 == fcntl(fd, F_SETFL, fl|O_NONBLOCK)) + else if (fcntl(fd, F_SETFL, fl|O_NONBLOCK) == -1) ERR(sess, "fcntl: F_SETFL"); else return 1; @@ -116,7 +116,7 @@ } argv++; argc--; - if (0 == argc) { + if (argc == 0) { ERRX(&sess, "must have arguments"); goto out; } @@ -134,7 +134,7 @@ * rsync [flags] "." */ - if (2 != argc) { + if (argc != 2) { ERRX(&sess, "server receiver mode " "requires two argument"); goto out;