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
f3d91528
Commit
f3d91528
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
CURLcode/int cleanup to reduce IRIX warnings
Removed some dates/names in the comments.
parent
f7fae235
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/transfer.c
+11
-7
11 additions, 7 deletions
lib/transfer.c
with
11 additions
and
7 deletions
lib/transfer.c
+
11
−
7
View file @
f3d91528
...
...
@@ -200,7 +200,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
{
struct
Curl_transfer_keeper
*
k
=
&
conn
->
keep
;
struct
SessionHandle
*
data
=
conn
->
data
;
int
result
;
CURLcode
result
;
ssize_t
nread
;
/* number of bytes read */
int
didwhat
=
0
;
...
...
@@ -251,10 +251,15 @@ CURLcode Curl_readwrite(struct connectdata *conn,
data
->
set
.
buffer_size
:
BUFSIZE
-
1
;
/* receive data from the network! */
result
=
Curl_read
(
conn
,
conn
->
sockfd
,
k
->
buf
,
buffersize
,
&
nread
);
int
readrc
=
Curl_read
(
conn
,
conn
->
sockfd
,
k
->
buf
,
buffersize
,
&
nread
);
if
(
0
>
result
)
/* subzero, this would've blocked */
if
(
0
>
readrc
)
break
;
/* get out of loop */
/* get the CURLcode from the int */
result
=
(
CURLcode
)
readrc
;
if
(
result
>
0
)
return
result
;
...
...
@@ -988,7 +993,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
if
(
k
->
badheader
<
HEADER_ALLBAD
)
{
/* This switch handles various content encodings. If there's an
error here, be sure to check over the almost identical code
in http_chunks.c.
08/29/02 jhrg
in http_chunks.c.
Make sure that ALL_CONTENT_ENCODINGS contains all the
encodings handled here. */
#ifdef HAVE_LIBZ
...
...
@@ -997,8 +1002,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
#endif
/* This is the default when the server sends no
Content-Encoding header. See Curl_readwrite_init; the
memset() call initializes k->content_encoding to zero.
08/28/02 jhrg */
memset() call initializes k->content_encoding to zero. */
if
(
!
k
->
ignorebody
)
result
=
Curl_client_write
(
data
,
CLIENTWRITE_BODY
,
k
->
str
,
nread
);
...
...
@@ -1015,7 +1019,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
result
=
Curl_unencode_gzip_write
(
data
,
k
,
nread
);
break
;
case
COMPRESS
:
/* FIXME 08/27/02 jhrg */
case
COMPRESS
:
default:
failf
(
data
,
"Unrecognized content encoding type. "
"libcurl understands `identity', `deflate' and `gzip' "
...
...
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