aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-06-08 18:55:35 +0000
committerYang Tse <yangsita@gmail.com>2009-06-08 18:55:35 +0000
commit9442fc0b5281c1b77a28571dc327b9043c42ca2e (patch)
treefbbd948c8a7a0b1e4dd4a2d49598f2c013f42781
parentdbb93a271869d4ff2b69f3fb680a41a00d3e034c (diff)
fix compiler warning: signed and unsigned type in conditional expression
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index b47dced06..0914a155c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2636,7 +2636,10 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
case 'N':
/* disable the output I/O buffering. note that the option is called
--buffer but is mostly used in the negative form: --no-buffer */
- config->nobuffer = (bool)(longopt ? !toggle : toggle);
+ if(longopt)
+ config->nobuffer = !toggle;
+ else
+ config->nobuffer = toggle;
break;
case 'O': /* --remote-name */
if(subletter == 'a') { /* --remote-name-all */