projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbb93a2
)
fix compiler warning: signed and unsigned type in conditional expression
author
Yang Tse
<yangsita@gmail.com>
Mon, 8 Jun 2009 18:55:35 +0000
(18:55 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Mon, 8 Jun 2009 18:55:35 +0000
(18:55 +0000)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
b47dced
..
0914a15
100644
(file)
--- 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 */