Don't use a bool directly in an int comparison.
authorWayne Davison <wayned@samba.org>
Fri, 13 Oct 2006 06:27:59 +0000 (06:27 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 13 Oct 2006 06:27:59 +0000 (06:27 +0000)
options.c

index a568643..05df91e 100644 (file)
--- 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)