aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-09-12 23:51:01 +0000
committerYang Tse <yangsita@gmail.com>2006-09-12 23:51:01 +0000
commit733a184ce0747c65fbc634e066cfac0ffae43d80 (patch)
treed833615599479909fa2a99a7890ae5006b39111d /src
parenteee09e79e8190b06fad1ed39d20eb53bee3f5b2e (diff)
Compiler warning fix
Diffstat (limited to 'src')
-rw-r--r--src/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 6d4820268..98bba1afc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1462,7 +1462,11 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
/* we can loop here if we have multiple single-letters */
if(!longopt) {
- letter = parse?(char)*parse:'\0';
+ if(NULL != parse) {
+ letter = (char)*parse;
+ else {
+ letter = '\0';
+ }
subletter='\0';
}
else {
@@ -3048,7 +3052,7 @@ int my_trace(CURL *handle, curl_infotype type,
break;
}
- newl = (size && (data[size-1] != '\n'));
+ newl = (bool)(size && (data[size-1] != '\n'));
return 0;
}