diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-24 01:27:00 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-24 01:27:00 +0000 |
commit | 6ea91af2f8f787f16b1bde88ae2293adcc961986 (patch) | |
tree | b7a84538b1b6217e877a01a2b41367d330d2e712 /src | |
parent | b7674403995be67dae5017b9dd573cc7b4e65825 (diff) | |
download | curl-6ea91af2f8f787f16b1bde88ae2293adcc961986.tar.gz |
fix compiler warning
Diffstat (limited to 'src')
-rw-r--r-- | src/getpass.c | 4 | ||||
-rw-r--r-- | src/main.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/getpass.c b/src/getpass.c index 7209a2ab1..8d20eb48c 100644 --- a/src/getpass.c +++ b/src/getpass.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -113,7 +113,7 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen) fputs(prompt, stderr); for(i=0; i<buflen; i++) { - buffer[i] = getch(); + buffer[i] = (char)getch(); if ( buffer[i] == '\r' || buffer[i] == '\n' ) { buffer[i] = 0; break; diff --git a/src/main.c b/src/main.c index e12c26ed5..1e06ef067 100644 --- a/src/main.c +++ b/src/main.c @@ -1852,7 +1852,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ config->disable_epsv = toggle; break; case 'E': /* --epsv */ - config->disable_epsv = !toggle; + config->disable_epsv = (bool)(!toggle); break; #ifdef USE_ENVIRONMENT case 'f': @@ -2021,7 +2021,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ config->disable_eprt = toggle; break; case 'Z': /* --eprt */ - config->disable_eprt = !toggle; + config->disable_eprt = (bool)(!toggle); break; default: /* the URL! */ @@ -2148,7 +2148,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ config->ftp_ssl_reqd = toggle; break; case 'w': /* --no-sessionid */ - config->disable_sessionid = !toggle; + config->disable_sessionid = (bool)(!toggle); break; case 'x': /* --ftp-ssl-control */ config->ftp_ssl_control = toggle; @@ -2172,7 +2172,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ config->post301 = toggle; break; case '1': /* --no-keepalive */ - config->nokeepalive = !toggle; + config->nokeepalive = (bool)(!toggle); break; case '3': /* --keepalive-time */ if(str2num(&config->alivetime, nextarg)) @@ -2602,7 +2602,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ break; case 'N': /* disable the output I/O buffering */ - config->nobuffer = !toggle; + config->nobuffer = (bool)(!toggle); break; case 'O': /* --remote-name */ if(subletter == 'a') { /* --remote-name-all */ @@ -2727,7 +2727,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ config->mute = config->noprogress = TRUE; else config->mute = config->noprogress = FALSE; - config->showerror = !toggle; /* toggle off */ + config->showerror = (bool)(!toggle); /* toggle off */ break; case 'S': /* show errors */ |