From: Wayne Davison Date: Fri, 13 Oct 2006 06:27:59 +0000 (+0000) Subject: Don't use a bool directly in an int comparison. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/4d51f0db79f11734a92db2d876aeb7b0f6546735 Don't use a bool directly in an int comparison. --- diff --git a/options.c b/options.c index a568643f..05df91e4 100644 --- a/options.c +++ b/options.c @@ -1499,7 +1499,7 @@ void server_options(char **args,int *argc) argstr[x++] = 'n'; if (preserve_links) argstr[x++] = 'l'; - if (xfer_dirs > (recurse || !delete_mode || !am_sender)) + if (xfer_dirs > (recurse || !delete_mode || !am_sender ? 1 : 0)) argstr[x++] = 'd'; if (am_sender) { if (keep_dirlinks)