Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
6ea91af2
Commit
6ea91af2
authored
16 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
fix compiler warning
parent
b7674403
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/http.c
+2
-5
2 additions, 5 deletions
lib/http.c
lib/http_chunks.c
+3
-3
3 additions, 3 deletions
lib/http_chunks.c
src/getpass.c
+2
-2
2 additions, 2 deletions
src/getpass.c
src/main.c
+6
-6
6 additions, 6 deletions
src/main.c
with
13 additions
and
16 deletions
lib/http.c
+
2
−
5
View file @
6ea91af2
...
...
@@ -1836,13 +1836,10 @@ static CURLcode https_connecting(struct connectdata *conn, bool *done)
/* perform SSL initialization for this socket */
result
=
Curl_ssl_connect_nonblocking
(
conn
,
FIRSTSOCKET
,
done
);
if
(
result
)
{
if
(
result
)
conn
->
bits
.
close
=
TRUE
;
/* a failed connection is marked for closure
to prevent (bad) re-use or similar */
return
result
;
}
return
CURLE_OK
;
return
result
;
}
#ifdef USE_SSLEAY
...
...
This diff is collapsed.
Click to expand it.
lib/http_chunks.c
+
3
−
3
View file @
6ea91af2
...
...
@@ -85,9 +85,9 @@
We avoid the use of isxdigit to accommodate non-ASCII hosts. */
static
bool
Curl_isxdigit
(
char
digit
)
{
return
(
digit
>=
0x30
&&
digit
<=
0x39
)
/* 0-9 */
||
(
digit
>=
0x41
&&
digit
<=
0x46
)
/* A-F */
||
(
digit
>=
0x61
&&
digit
<=
0x66
)
;
/* a-f */
return
(
bool
)(
(
digit
>=
0x30
&&
digit
<=
0x39
)
/* 0-9 */
||
(
digit
>=
0x41
&&
digit
<=
0x46
)
/* A-F */
||
(
digit
>=
0x61
&&
digit
<=
0x66
)
);
/* a-f */
}
void
Curl_httpchunk_init
(
struct
connectdata
*
conn
)
...
...
This diff is collapsed.
Click to expand it.
src/getpass.c
+
2
−
2
View file @
6ea91af2
...
...
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 200
5
, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 200
8
, 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
;
...
...
This diff is collapsed.
Click to expand it.
src/main.c
+
6
−
6
View file @
6ea91af2
...
...
@@ -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 */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment